Question: WRITE JAVA Write an application for the Crystal Beach Resort; the program determines the price of a room. Ask the user to choose 1 for

WRITE JAVA

Write an application for the Crystal Beach Resort; the program determines the price of a room. Ask the user to choose 1 for queen bed, 2 for king bed, or 3 for a king and a pullout couch. The output echoes the input and displays the price of the room. The queen beds cost $125, the king beds cost $139, and the king/sofa suite costs $165 . If the user enters and an invalid code (something other than 1, 2, or 3) an error message is displayed and the price is set to $0.

Add a prompt to the Crystal Beach Resort to ask the user to specify a 1 for lake view, 2 for park view, but only ask if the bed size is valid. Add $15 to the price of a lake view room.

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!