Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Security

Authors: Alfred Basta, Melissa Zgola

1st Edition

1435453905, 978-1435453906

More Books

Students also viewed these Databases questions

Question

Perform the indicated multiplications. (c 2 + 3x) 3

Answered: 1 week ago