An airplane has both first-class and coach seats the


Question: An airplane has both first-class and coach seats. The first-class tickets cost more than the coach tickets. The airline wants a program that calculates and displays the total amount of money the passengers paid for a specific flight. Complete an IPO chart for this problem. Desk-check the algorithm using 9, 52, $125, and $90 as the number of first-class tickets sold, the number of coach tickets sold, the price of a first-class ticket, and the price of a coach ticket, respectively. Then desk-check it using your own set of data.

Solution Preview :

Prepared by a verified Expert
Data Structure & Algorithms: An airplane has both first-class and coach seats the
Reference No:- TGS02453435

Now Priced at $15 (50% Discount)

Recommended (93%)

Rated (4.5/5)