Flowchart
Flowchart
R
Flowchart Symbols:
SI
Denotes the start and end of an algorithm.
AN
Denotes a process to be carried out.
AS
IH
Denotes a decision to be made.
ED
R
SI
AN
AS
IH
ED
EH
M
S
M
C
R
SI
AN
AS
IH
ED
EH
M
S
M
C
Write an algorithm using flowchart to input three numbers and output the
largest of three numbers.
R
SI
AN
AS
IH
ED
EH
M
S
M
C
R
SI
AN
AS
IH
ED
EH
M
S
M
C
R
SI
AN
AS
IH
ED
EH
M
S
M
C
R
SI
AN
AS
IH
ED
EH
M
S
M
C
R
SI
AN
AS
IH
ED
EH
M
S
M
C
R
SI
AN
AS
IH
ED
EH
M
S
M
C
R
SI
AN
AS
IH
ED
EH
M
S
M
C
R
SI
AN
AS
IH
ED
EH
M
S
M
C
R
outputs the number of cards, sweets, stationery and toys.
SI
AN
AS
IH
ED
EH
M
S
M
C
A company are carrying out a survey by observing traffic at a road junction. Each time a car,
bus, lorry or other vehicle passed by the road junction it was noted down.
10 000 vehicles were counted during the survey.
Write an algorithm, using Flowchart, which:
R
SI
• inputs all 10000 responses
• outputs the number of cars, buses and lorries that passed by the junction during the
survey
• outputs the number of vehicles that weren’t cars, buses or lorries during the survey.
AN
AS
IH
ED
EH
M
S
M
C
R
SI
AN
AS
IH
ED
EH
M
S
M
C
R
SI
AN
AS
IH
ED
EH
M
S
M
C
R
Using Flowchart or otherwise, write an algorithm that will input the ID, weight (kg) and
height (m) of 30 students, calculate their body mass index (BMI) and output their ID,
SI
BMI and a comment as follows:
A BMI greater than 25 will get the comment ‘OVER WEIGHT’, a BMI between 25 and
19 (inclusive) will get ‘NORMAL’ and a BMI less than 19 will get ‘UNDER WEIGHT’.
AN
AS
IH
ED
EH
M
S
M
C
R
3 = video
4 = book
SI
For example, for the code 15642 the 1 identifies that it is a CD, and for the code 30055 the
3 identifies that it is a video.
Write an algorithm, using Flowchart or otherwise, that
AN
• Inputs the codes for all 5000 items
• Validates the input code
• Calculates how many CDs, DVDs, videos and books are in stock
• Outputs the four totals.
AS
IH
ED
EH
M
S
M
C
R
• if current balance < $100, then a charge of 2% is made
• if current balance $100, no charge is made
SI
Write an algorithm which inputs a request for a sum of money, decides if a withdrawal can
be made and calculates any charges. Appropriate output messages should be included.
AN
AS
IH
ED
EH
M
S
M
C
R
KNIGHTAIR (code KA)
Each flight is identified by the airline code and 3 digits. For example FA 156.
SI
Write an algorithm, using pseudocode or otherwise, which monitors the 400 flights into and
out of the airport each day. The following inputs, processing and outputs are all part of the
monitoring process:
AN
• input flight identification
• calculate number of flights per day for each of the three airlines
• output the percentage of the total flights per day by each airline
• any validation checks must be included.
AS
IH
ED
EH
M
S
M
C
R
• carries out a check to ensure the second date is later
• if error, increments error counter
SI
• outputs the number of errors
AN
AS
IH
ED
EH
M
S
M
C
R
• checks the sensor input values and outputs a warning message if either are out of
range
SI
• continues monitoring until the <ESCAPE> key is pressed
(You may assume that READ SENSORn will take a reading from SENSORn and that
READ KEY inputs a key press from the keyboard).
AN
AS
IH
ED
EH
M
S
M
C