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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started