Computer Programming (CSE-109)

Computer Programming (CSE-109)
SOLUTION OF FLOWCHART ASSIGNMENTS
EECE-10 (Level-1, Term-II)
1. A class has 20 students. Each student has appeared in 5 exams. Each exam is out of 100
marks. Calculate and display the average marks of each student.
Hint: Create a module to calculate the average of marks.
2. Draw a flowchart to display the squares of the first 100 natural numbers.
3. Draw a flowchart to accept three numbers and display the lowest.
4. Draw a flowchart to accept two numbers and check if the first number is divisible by the
second.
5. Draw a flowchart to enter a number from 1 to 7 and display the corresponding day of
the week. (Hint: 1= Sunday)
6. Draw a flowchart to accept the radius and calculate the area of a circle using the
formula:
Area of circle= Pi * r2
Where Pi=22/7 and ‘r’ is the radius of the circle.
7. Draw a flowchart to generate the first ten numbers and display the average of these
numbers.
8. Draw a flowchart to accept a number and then find out whether or not the number is
divisible by 5.
9. Draw a flowchart to accept three numbers and display the largest.
10. Candidates have to enter their age. The age cannot be negative. If a negative age is entered,
an error message has to be displayed, otherwise the age is displayed. Draw a flowchart for this
purpose.
11. Draw a flowchart to print the product of the first 10 even numbers.
12. Draw a flowchart to accept 50 numbers and also display the total number of odd and even
numbers.
13. Draw a flowchart to display the highest of any 10 numbers entered.
14. Draw a flowchart to accept 50 numbers and also display the total number of prime numbers.
15. Draw a flowchart to display the lowest of any 10 numbers entered.
16. Draw a flowchart to accept 50 numbers and also display the total number of rational
numbers.
17. Draw a flowchart to print the product of the first 11 odd numbers.