Any five from:
• Prompt for plane
• Input plane
• Prompt for another input length of flight along with the input.
• Attempt at calculation of maximum number of flights in a day
• Using correct values for maximum number of flights (from calculation or
otherwise)
• Calculation/determination of cost of a single flight for selected plane and
duration
• Calculation of income that can be generated for one combination of
plane and flight
• Output of total possible income for one combination of plane and flight
with message(s)
Algorithm example:
OUTPUT "Please Enter Type of Plane"
OUTPUT "1: 2 Seater"
OUTPUT "2: 4 Seater"
OUTPUT "3: Historic"
INPUT PlaneType
OUTPUT "Please Enter Length of Flight"
INPUT FlightLength
CASE FlightLength of
30: OUTPUT "Maximum number of flights is 10"
60: OUTPUT "Maximum number of flights is 6"
OTHERWISE OUTPUT "Invalid length of flight"
ENDCASE
CASE PlaneType of
1: Price30 ? 100; Price60 ? 150
2: Price30 ? 120; Price60 ? 200
3: Price30 ? 120; Price60 ? 500
OTHERWISE OUTPUT "Invalid type of plane"
ENDCASE
CASE FlightLength of
30: OUTPUT "Total Possible Income is ", Price30 * 10
60: OUTPUT "Total Possible Income is ", Price60 * 6
ENDCASE