Chapter5: Algorithm, Flowchart, Pseudocode: Find Sum of Two Numbers
Chapter5: Algorithm, Flowchart, Pseudocode: Find Sum of Two Numbers
To categorize a person as either child (<13), teenager (>=13 but <20) or adult (>20), based on age specified
Algorithm Flowchart Pseudocode
Step 1 : Start Input age
Step 2 : Input age Check if age is less than 13 years
Step 3 : Check if age is <13 If yes,
If yes, print “Child” Display “Child”
If no, go to step 4 Else,
Step 4 : Check if age is >= 13 Check if age is more than or equal
and <20 to 13 but less than 20
If yes, print “Teenager” If yes,
If no, go to step 5 Display “Teenager”
Step 5 : Check if age is >20 Else,
If yes, print “Adult” Display “Adult”
If no, go to step 6
Step 6 : Stop
To accept numbers till the user enters 0 and then find their average
Algorithm Flowchart Pseudocode