Question: C++ Write a complete program to display a bus ticket information for a customer based on the table given below. Ask the customer to enter

 C++ Write a complete program to display a bus ticket information

C++

Write a complete program to display a bus ticket information for a customer based on the table given below. Ask the customer to enter the destination and the number of passengers. The program will calculate and display the destination and total price for each customer. The program will only stop if the user enters 'N'. When the program stops, it will display the total number of customers who have entered the data. Destination Johor Selangor Price 89.00 55.50 Sample of the output is as follows: Enter destination: Johor Enter number of passengers: 2 Destination = Johor Total Price = RM178 Enter Y to continue or N to stop: Y Enter destination: Selangor Enter number of passengers: 2 Destination = Selangor Total Price = RM111 Enter Y to continue or N to stop: N THE TOTAL NUMBER OF CUSTOMERS IS = 2 (10 marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!