Question: Solve this using Matlab Write a program to compute hotel room charges using nested if-statements. The program must ask the user for: room type, number
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 4 3. Room type Chargeight Double Suite $120 $150 Number of guests 1-2 3-4 Added charge $ 0 s 50
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
