logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Zayed KhanEconomics
(5/5)

888 Answers

Hire Me
expert
Adebayo Roqeeb AbiodunMathematics
(/5)

729 Answers

Hire Me
expert
Justice CookResume writing
(5/5)

723 Answers

Hire Me
expert
Rech ElleeNursing
(5/5)

583 Answers

Hire Me
Others

create a sentinel variable that controls a loop you can create variables that hold and increment numbers

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

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 Example: "Welcome to the house. Enter 1 to go to the kitchen, 2 to go to the bedroom, and 3 to go to the living room. Enter 0 to quit." 2 "Oh, it's such a spooky bedroom. Oh man, you would not believe how spooky this is. For real, super spooky." "Enter 1 to go to the kitchen, 2 to go to the bedroom, and 3 to go to the living room. Enter 0 to quit." 0 "Goodbye! You spent 1 hour(s) in the house" Requirements: Program should handle incorrect input Program should correctly count the number of hours spent in the house Program should include at least 3 rooms to explore Program should not exit until the user wants to exit You cannot use any programming features/concepts that we have not covered in the book so far Tools you have: You can create a sentinel variable that controls a loop You can create variables that hold and increment numbers You can compare strings for equality Note that input provides a string, so a user entering a number would be the string version of that number You can perform different actions in a program based on a condition with if You can create a loop with while You can print text to the screen Please turn in a .py file with your script here, and a .txt file version of your code as a second submission. (Python Programming Language)

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme