The Algorithm (2)
The Algorithm (2)
This algorithm reads the activities of the bus terminal and accepts capacity, number of
entries for an unspecified number of buses, bus registration number and owner’s name, The
data entry stops when zero is entered as a bus registration number, and the algorithm
should print a breakdown of total toll, total due, flat charge and discount, for each bus.
Variable
Start
Repeat
Print " Please enter bus registration number, add zero to stop data entry”
Read busregnumber
Read name
Read capacity
Read entries
else
Flat charge = 75
endif
else
endif
Until busregnumber =0
Stop