Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

An airline has the following system for computing a customer\'s bill: 1. The tic

ID: 674787 • Letter: A

Question

An airline has the following system for computing a customer's bill:

1. The ticket price is based on the seat code:

      Seat type                               Description    Price

      4                                            First Class    $500

      5                                            Regular         $200

      3                                            Economy $50

2. Insurance is optional and will cost $75 extra.

3. If the ticket is purchased in advance a limo ride will cost $15, otherwise a limo ride will cost $30

4. A 12% discount is given on the ticket price if the customer has flown with the airline before.

5. The final bill will include a 4% sales tax.

Create the pseudocode design that will compute a customer's bill, based on the charges described above.

The input record includes:

Customer Name Seat Code (4, 5 or 6)

Insurance Code (0 or 1)

         0 - Yes

         1 - No

Purchase Date Today's Date

Limo Needed (0 or 1)

        0 - Yes

        1 - No

First Flight (0 or 1)

        0 - Yes

        1 - No

The output includes: Customer Name Seat Type Message (First Class, Regular or Economy) Total Bill

I just need a simple pseudocode to go about this problem

Explanation / Answer

#include #include #include #include using namespace std; class ReservationRecords { private: struct Flights { string FlightNumber; int TotalSeats; int TakenSeats; }; struct Record { string Name; string PhoneNumber; string FlightNumber; string DateOfTravel; }; vector FlightList; vector RecordList; public: // add all info into flightlist void GetFlightData() { string filename; cout > filename; ifstream inputfile (filename); // ifstream = stream class to read from files if (inputfile.is_open()) cout FilenameFlightNumber; inputfile >> FilenameTotalSeats; Flights AddToList; AddToList.FlightNumber = FilenameFlightNumber; AddToList.TotalSeats = FilenameTotalSeats; FlightList.push_back(AddToList); }; }; void NewFlight(string NewFlightNumber, int NewFlightTotalSeats) { for(int i =0; i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote