Question: Create an application that allows the user to explore a haunted house. Specifically, the user should be presented options of what room they'd like to

Create an application that allows the user to explore a haunted house. Specifically, the user should be presented options of what room they'd like to explore, and on selecting that room, the program should provide the user with a spooky description of that room.
Exploring a room should take the user 1 "hour" (just a count, not a real world hour). Keep a total of how many hours the user has been in the house.
When the user starts the program, they should be given four options: three options should take them to a room, and the fourth option allows them to leave the house and end the application. When the user decides to leave, tell them how many hours they've spent in the house.
Tips:
Use a while loop to keep the user in the house as long as they want to be there
Inside that loop, ask the user what room they'd like to visit.
Use if statements based on user input to describe different rooms to the user
Properly utilize a while loop in a working program
Badge must be earned through a programming assignment. (The following requirements must be met.)
1. Programming assignment must work and meet basic requirements from the prompt.
2. Badge name must be listed in comments at the top of your code.
3. A comment showing where the logic to earn the badge is located and explaining how it works.

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!