01: Draw a flowchart for work the traffic lights ? Q2: Write the algorithm required to find the largest number from the numbers A, B, and C ? Q3: Write the algorithm for a program that calculates the cost of the phone bill according to the following three rules ? (1) The first 50 minute: each minute with 10 DI. (2) The next 100 minute: each minute with 15 DI. (3) Whats more: each minute with 20 DI. 04: Write the algorithm to find the sum of the number from 1 to 20 ? Q5: Draw a flowchart for the following algorithm ?

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 30PE
icon
Related questions
Question
End
Exercises:
01: Draw a flowchart for work the traffic lights ?
Q2: Write the algorithm required to find the largest number from the numbers A, B,
and C ?
Q3: Write the algorithm for a program that calculates the cost of the phone bill
according to the following three rules ?
(1) The first 50 minute: each minute with 10 DI.
(2) The next 100 minute: each minute with 15 DI.
(3) Whats more: each minute with 20 DI.
04: Write the algorithm to find the sum of the number from 1 to 20 ?
Q5: Draw a flowchart for the following algorithm ?
(1) Put value of sum equal zero and value of N equal 1.
(2) Add N to the sum
(3) If N<6 add 1 to the current value of N, then go to step 2.
(4) Print value of sum.
(5) Stop
06: Draw a flowchart to find the sum m of real numbers (X, X2, X3,..
.Xm).
So that the result is the sum of the numbers T such that T E, X, ?
Q7: Write an algorithm to print the multiplication table for number 9?
Q8: Write an algorithm to calculate the average numbers that the factorial result of
last number equal to 5040?
09: Draw a flowchart to find the greater common factor between two numbers?
Q10: Draw a flowchart to find the prime numbers for N numbers?
Transcribed Image Text:End Exercises: 01: Draw a flowchart for work the traffic lights ? Q2: Write the algorithm required to find the largest number from the numbers A, B, and C ? Q3: Write the algorithm for a program that calculates the cost of the phone bill according to the following three rules ? (1) The first 50 minute: each minute with 10 DI. (2) The next 100 minute: each minute with 15 DI. (3) Whats more: each minute with 20 DI. 04: Write the algorithm to find the sum of the number from 1 to 20 ? Q5: Draw a flowchart for the following algorithm ? (1) Put value of sum equal zero and value of N equal 1. (2) Add N to the sum (3) If N<6 add 1 to the current value of N, then go to step 2. (4) Print value of sum. (5) Stop 06: Draw a flowchart to find the sum m of real numbers (X, X2, X3,.. .Xm). So that the result is the sum of the numbers T such that T E, X, ? Q7: Write an algorithm to print the multiplication table for number 9? Q8: Write an algorithm to calculate the average numbers that the factorial result of last number equal to 5040? 09: Draw a flowchart to find the greater common factor between two numbers? Q10: Draw a flowchart to find the prime numbers for N numbers?
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Concept of Flowchart
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr