PSUEDOCODE main() DISPLAY_TRAIN_TICKET CALL menu() CALL fare=price() CALL paymentMethod() Call display(fare) END menu() SELECT_CHOICE PROMPT and GET choice CALL choice = errorchecking(input) DOWHILE choice<1 OR choice>2 PROMPT and GET input CALL choice = errorchecking(input) ENDDO IF choice==2 CALL exit() ENDIF END price() CALCULATE_PRICE REPEAT REPEAT PROMPT and GET input CALL selection_a = errorchecking(input) CASEOF selection_a 1 : DISPLAY “Departure : Tai Pei” Departure = 0 2 : DISPLAY “Departure : Ban Ciao” Departure = 40 3 : DISPLAY “Departure : Tao Yuan” Departure = 160 4 : DISPLAY “Departure : Hsin Chu” Departure = 290 5 : DISPLAY “Departure : Tai Chung” Departure = 700 6 : DISPLAY “Departure : Chia Yi” ...