Answer:
<em>The programming language is not stated; However, I'll answer this question using Python programming language.</em>
<em>This program does not make use of comments; See explanation section for detailed explanation of the program</em>
<em>Program starts here</em>
print("Welcome to Shady Rest Hotel")
print("Please select any of the following:")
print("Press 1 for a queen bed:")
print("Press 2 for a king:")
print("Press 2 for a king and a pullout:")
userinput = input("Enter your selection: ")
if userinput == "1":
print("You selected the queen bed")
print("Price = $125")
elif userinput == "2":
print("You selected a king bed")
print("Price = $139")
elif userinput == "3":
print("You selected a suite with king bed and a pullout couch")
print("Price = $165")
else:
print("Invalid Selection")
print("Price = $0")
Explanation:
This line welcomes the user to the hotel
print("Welcome to Shady Rest Hotel")
The next 4 lines (italicized) gives instruction to the user on how to make selection
<em>print("Please select any of the following:")</em>
<em>print("Press 1 for a queen bed:")</em>
<em>print("Press 2 for a king:")</em>
<em>print("Press 2 for a king and a pullout:")</em>
This line prompts the user for input
userinput = input("Enter your selection: ")
If user input is 1, the italicized lines displays user selection, which is the queen bed and the price; $125
<em>if userinput == "1":</em>
<em> print("You selected the queen bed")</em>
<em> print("Price = $125")</em>
However, if user input is 2, the italicized lines displays user selection, which is the king bed and the price; $139
<em>elif userinput == "2":</em>
<em> print("You selected a king bed")</em>
<em> print("Price = $139")</em>
However, if user input is 3, the italicized lines displays user selection, which is a suite with king bed and a pullout couch and the price; $165
<em>elif userinput == "3":</em>
<em> print("You selected a suite with king bed and a pullout couch")</em>
<em> print("Price = $165")</em>
<em />
Lastly, the following is executed if user input is not 1, 2 or 3 and the price is set to 0
<em>else:</em>
<em> print("Invalid Selection")</em>
<em> print("Price = $0")</em>