Flowcharts 2
Flowcharts 2
b) What will be the output if you put your age into this flowchart ?
2. Draw a flowchart that asks user to enter 3 numbers, then it should calculate the average of
that 3 number and output the result.
Selection statements
A selection statement is used when decision needs to be made in an algorithm. It has a condition.
This is a statement that will be either true or false.
Example :
Boolean logic
The conditions in the flowchart above can only be answered by True
False. These are called Boolean conditions. Boolean means that there are
only two options. These could be:
True/ False
Yes/ No
l/0
Positive/ Negative
Comparison operators
Exercise
3) Draw a flowchart that takes student’s exam score as the input and finds out if the student is pass
or fail. The pass mark is 55.
4) Draw a flowchart that takes student’s exam score as the input and outputs his grade.
75 and above = A grade
50 to 74 = B grade
30 to 49 = C grade
below 49 = F grade