Question: Write a program to compute hotel room charges using nested if-statements. The program must ask the user for: room type, number of occupants, number of

 Write a program to compute hotel room charges using nested if-statements.

Write a program to compute hotel room charges using nested if-statements. The program must ask the user for: room type, number of occupants, number of nights. Then compute the total cost of the room. Use one if statement for each room type, then nest the occupancy charge inside of the room type. The program should also give an error statement if the number of occupants is c0 or >4 3. Room type Chargeight Double$150 Suite $120 Number of guests 1-2 3-4 Added charge $0 s 50 5

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!