Professional Documents
Culture Documents
Selction Flowchart Practice
Selction Flowchart Practice
Selction Flowchart Practice
Ms Nida Naeem
O/A levels
Computer Science
0345-5175350
Problems-Flowcharts (selections)
• Draw a flowchart which inputs a Day number and output day
accordingly.
1 Monday
2 Tuesday
3 Wednesday
4 Thursday
5 Friday
6 Saturday
7 Sunday
Error otherwise
2
• Input marks of three students. Calculate and output Total and Average
obtained by them. Include suitable prompts where necessary.
• Draw a flowchart which takes a symbol for operation and two
numbers from user , perform required arithmetic operation and
output the answer.
‘N’ Y=Y+1
‘S’ Y=Y-1
‘E’ X=X+1
‘W’ X=X-1
Problem 3
• Input a number from user and output its square.
Problem 4
• Input 3 numbers from user and output the largest number input by
user.
• Try the above problem for smallest number input
Problem 5
• Input item name and its price from the user. Output the following