0% found this document useful (0 votes)
16 views

Selction Flowchart Practice

The document provides examples of flowchart problems that involve taking input from a user and performing operations or checks to output a result. The problems cover a range of scenarios like determining the day of the week from a number, calculating total and average marks, performing arithmetic operations, grading based on percentages, checking temperature ranges, and checking if numbers are within a specified range or divisible.

Uploaded by

zahidakamran09
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

Selction Flowchart Practice

The document provides examples of flowchart problems that involve taking input from a user and performing operations or checks to output a result. The problems cover a range of scenarios like determining the day of the week from a number, calculating total and average marks, performing arithmetic operations, grading based on percentages, checking temperature ranges, and checking if numbers are within a specified range or divisible.

Uploaded by

zahidakamran09
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Flowchart Practice Problems

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.

‘+’ Add two numbers


‘-’ Subtract two numbers
‘*’ Multiply two numbers
‘/’ Divide two numbers
• Draw a flowchart which outputs the grade of student based on
percentage attained. Percentage is input from user based on criteria
mentioned below:-
CRITERIA
>=90 AND <=100 A*
>=80 AND <90 A
=70 AND <80 B
>=60 AND <70 C
<50 U
• Draw a flowchart which Inputs direction from user and output
coordinates information accordingly ( X, Y are coordinates)

‘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

Very expensive if Price is above 40 (Inclusive)


Average if Price is above 30 and less then 40
Affordable if Price is less then 30(inclusive)
Problem 6
• Draw flowchart which inputs two integers from user and output if
they are equal or not.
Problem 7
• Draw a flowchart to read temperature in centigrade and display a
suitable message according to the temperature state below:
• Draw a flowchart that inputs an integer from the user and determines
if it is within a specified range (50 to 100 inclusive). Output within
range or out of range.
• Draw a flowchart that reads two integers (Num1 and Num2) from
user and output if Num1 is divisible by Num2. Output prompts
accordingly.

You might also like