Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
100% found this document useful (2 votes)
1K views

Flowchart Exercises

The document lists 12 problems that require developing flow charts to: determine if a number is odd or even; find the larger of two user-input numbers; display 3 user-input numbers in ascending order; add the numbers from 1 to 100; add even numbers between 0 and a user-input number; find the average of two user-input numbers; find the average, maximum, minimum, and sum of three user-input numbers; calculate the area of a circle given the radius; swap the contents of two variables using and not using a third variable; count how many of 10 user-input integers are larger than 50; and display the factorial of a user-input integer.

Uploaded by

Ram Anand
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
1K views

Flowchart Exercises

The document lists 12 problems that require developing flow charts to: determine if a number is odd or even; find the larger of two user-input numbers; display 3 user-input numbers in ascending order; add the numbers from 1 to 100; add even numbers between 0 and a user-input number; find the average of two user-input numbers; find the average, maximum, minimum, and sum of three user-input numbers; calculate the area of a circle given the radius; swap the contents of two variables using and not using a third variable; count how many of 10 user-input integers are larger than 50; and display the factorial of a user-input integer.

Uploaded by

Ram Anand
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

For each of the problems below, develop a flow chart

1)
Receive a number and determine whether it is odd or even.
2)
Obtain two numbers from the keyboard, and determine and display which (if either) is the
larger of the two numbers.
3)
Receive 3 numbers and display them in ascending order from smallest to largest
4) Add the numbers from 1 to 100 and display the sum
5) Add the even numbers between 0 and any positive integer number given by the user.
6)
Find the average of two numbers given by the user.
7)
Find the average, maximum, minimum, and sum of three numbers given by the user.
8)
Find the area of a circle where the radius is provided by the user.
9)
Swap the contents of two variables using a third variable.
10) Swap the content of two variables without using a third variable.
11) Read 10 integers from the keyboard in the range 0 -100, and count how many of them are
larger than 50, and display this result.
12) Take an integer from the user and display the factorial of that number

You might also like