Question: Basic C++ Programming A bus company needs to efficiently issue tickets to customers based on their chosen journey. You have been hired to develop a
Basic C++ Programming


A bus company needs to efficiently issue tickets to customers based on their chosen journey. You have been hired to develop a simple Bus Ticketing System that will enable the bus company to issue tickets to the customers quickly. The bus company arranges journeys to two cities, i.e. Johor Bahru and Penang. All buses depart from the main terminal located at Kuala Lumpur. They offer two types of buses affording different levels of comfort. The buses will depart at different times following a schedule set by the company. Table below shows all the necessary information with ticket prices for the buses: - From KL to JB Bus Type Price per pax (In RM) 25/01/2021 8.00am Standard 40 2.00pm Premium 70 28/01/2021 11.00am Premium 70 4.00pm Standard 40 Date Time From KL to PEN Date Time Bus Type Price per pax (In RM) 50 100 26/01/2021 29/01/2021 9.00am 3.00pm Standard Premium *If other than the available date/time/bus type chosen, and appropriate Error Message should be displayed. Sample Output: Bus Ticketing System How many purchases? 2 PURCHASE 1 From KL to : JB Date(DD/MM/YYYY): 25/01/2021 Time : 2.00PM Bus Type :Premium How many Pax : 5 Bus Ticket Payment is RM350.00 PURCHASE 2 From KL to : PEN Date(DD/MM/YYYY): 29/01/2021 Time : 3.00PM Bus Type :Premium How many Pax : 2 Bus Ticket Payment is RM200.00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
