HOME
Train Tickets
Write a program that calculates the cost of a train ticket.
- The user enters a destination, a seat type and optional Voucher
- The 3 destinations are Bath, Bristol & Swindon.
- The price for each destination is £10,£15 and £20 respectively.
- If the type of seat is First class then the ticket price is multiplied by 1.5.
- If the user has added a voucher called ILOVETRAINS then the total ticket price is reduced by 50%
- The program should output the cost of the ticket
Construct a pseudocode answer by drag&dropping and reordering lines from the
left to the right.
New instance
Get feedback