the class of travel, insurance etc. The program gives user the final output as train ticket with the amount to be paid. Finally, it’s the user who has to decide whether to book the ticket or not. The ...