Question: C++ How to implement a bus system. A little confused on how to use the cpp files with headers and asking for user input for

C++ How to implement a bus system. A little confused on how to use the cpp files with headers and asking for user input for a bus registration system. The initial screen is going to be a "1. customer" and "2. Admin". From there there are going to be multiple layers of files. Here is some more info:

Reservation:

Passengers can reserve seats 2 weeks in advance. Reservation requires passengers biographical information including name, address, contact number, email address, date of travel and how many tickets. Passengers can cancel reservation one week before the travel however any cancellation shorter than a week will require 30% penalty. If a passenger wants to cancel reservation one day before the travel including one minute before the travel will forfeit the entire cost of the ticket. If the travel is cancelled by the company, passengers will get full refund. The company reserves the rights to cancel any travel with prior notice at 2 days ahead of the journey. The company can reject any travel at its discretion. All kinds of reservation need to store in permanent file(s) so that they can retrieve later for administration tasks.

here is the main menu:

int main() { cout << " 1. Customer."; cout << " 2. Admin."; cout << " Enter your choice : "; int choice; cin >> choice; if (choice == 1) { customer(); } if (choice == 2) { admin(); }

return 0; }

I made a .h (header file) named reservation. Just wondering how I would gather the user input and continue on with further options. Thanks!

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!