Question: PartA Write an application called ShadyRestRoom for the Shady Rest Hotel; the program determines the price of a room. Ask the user to choose 1
PartA
Write an application called ShadyRestRoom for the Shady Rest Hotel; the program determines the price of a room. Ask the user to choose for a queen bed, for a ling, or for a ling and a pullout couch. The output echoes the input and displays the price of the room: $ for queen, S for ling, and Sles for a sulte with a king bed and a pullout couch. If the user enters an invalid code, display an appropriate message and set the price to o
An example of the program is shown below:
Menu
Queen bed
King bed
Suite with a king bed and pullout couch Suite with a king bed and pullout couch
Enter Selection or
You selected King bed $
Part
Copy the contents of the ShadyRestRoom application into ShodyRestRoomjovo file anc rename the class ShadyRestRoom?. Add a prompt to the ShadyRestRoom application to ask the user to specify a a lalse viow or a park viow, but ask that question only if th bed size entry is valid. Add $ to the price of any room with a lake vier. If the view valu is invalid, display an appropriate message and assume that the price is for a room with lake viem.
An example of the program is shown below:
MenuMenu
Queen bed
King bed
Suite with a king bed and pullout couch
Enter Selection or
Please choose a view:
a lake
a park
Enter Selection or
You selected King bed with a lake view for $Task o: Create the ShadyRestRoom class.
Task : The program ShadyRestRoom accepts the user selection for a room and displays the price of the room.
Task s: The ShadyRestRoom program handles an invalid room selection.Task oas Greate the ShadyRestRoom class.
Task The program ShadyRestioom? accepts the user selection for a room and displays the price of the room.
Trosucs The ShadyiestRoom? program handles an invalid room selection.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
