Sequence & Selection - Practice Set
Sequence & Selection - Practice Set
Creating Flowcharts
A teacher wants to calculate the
total cost for buying 3 notebooks.
The price of one notebook is given
as input. Create a flowchart that
calculates the total cost.
A person wants to find the area of
a rectangle. The length and width
of the rectangle are given as input.
Create a flowchart that calculates
the area of the rectangle.
You are designing a flowchart for
calculating the total cost of a
school uniform (shirt and pants).
The price of a shirt and pants is
given as input. Create a flowchart
that calculates the total cost.
Design a flowchart that calculates
the average score of a student
from five different subject marks.
Create a flowchart to calculate
the final grade based on scores
from three exams (midterm,
project, final exam). The weightage
for each exam is 30%, 20%, and
50% respectively.
Selection
Creating Flowcharts
Design a flowchart that checks if a
number is even or odd.
Create a flowchart to check if a
person is eligible to vote. The
minimum voting age is 18.
Design a flowchart that decides what to
wear based on the temperature. If the
temperature is greater than 30°C, suggest
wearing light clothes. If the temperature is
between 15°C and 30°C, suggest wearing
a sweater. Otherwise, suggest wearing a
jacket.
Design a flowchart to decide
whether to open an umbrella based
on the weather. If it's raining, open
the umbrella. If it's sunny or cloudy,
do not open it.
Design a flowchart for a car rental
system that checks the age of the
person renting the car. If the person is
under 21 years old, they are only
allowed to rent a compact car. If they
are 21 or older, they can rent any car
type (compact, sedan, or SUV).