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

Solve this using Matlab  Solve this using Matlab Write a program to compute hotel room

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

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!