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 ?
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
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?](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fdaed1fbf-9d36-4eb3-b2a6-89e4421412f3%2F0f62ddd0-3e64-4280-96db-569d027c7960%2Fewq9hfu_processed.jpeg&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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.Recommended textbooks for you
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr