1. Exercise 9 (Ch 4): Nested if
• Write a program with a nested if or switch-case
statements to print the appropriate rate
depending on the value of the variables duration
and room entered by the user. The table below
shows the room rate that should be printed
according to the values entered.
duration room rate
1 S RM 85
2-3 S RM 75
4-6 D RM 120
7 days or more D RM 100