Design a program using pseudocode that will create a customer's bill for an airline.
1. the tickets are purchased based on the seat code.
seat type price
4 - first class $500
5 - regular $300
6 - economy $100
2. insurance is optional and will cost $75 extra.
3. the final bill will include a 4% sales tax.
4. if the ticket is purchased in advance, a limo ride will cost $15, otherwise a limo ride will cost $30.
5. a 12% discount is given on the ticket price if the customer has flown with the airline before.
the customer will input the followig:
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 design will output the customer name, seat type (first class, regular or economy) and total bill.



Answer :

Other Questions