Isiah K.

asked • 10/18/20

I am having serious trouble with this code I have tried multiple times and failed, please help.

The assignment is to write an application for the Shady Rest Hotel; the program determines the price of a room. Ask the user to choose 1 for a queen bed, 2 for a king, or 3 for a king and a pullout couch. The output echoes the input and displays the price of the room: $125 for queen, $139 for king, and $165 for suite with king bed and a pullout couch. If the user enters an invalid code, display You selected an invalid option and set the price to 0.


import java.util.Scanner;

public class ShadyRestRoom {

public static void main (String args[]) {

// Write your code here

}

}


1 Expert Answer

By:

Patrick B. answered • 10/18/20

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.