Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment 3: Haunted House .From the front door, the user must choose between going into the living room, dining room or up the stairs, To

image text in transcribedimage text in transcribed

Assignment 3: Haunted House .From the front door, the user must choose between going into the living room, dining room or up the stairs, To get from one room to the next, there must be get to some rooms, the user must go through other rooms. See the above dlagram for more detalls. door. That means that to For this assignment you will be building a class, creating objects, doing comparisons and using nested control statements. You need to remember what you have learned in class, lab, books and your assignments. Be sure to refer to them when you need to. If the user is in a room that is attached to another room via a door (not the There are 2 parts to this assignment. In the first part. you are going to be given a problem and you will then need to create a structure, write algorithms and a flow chart to solve it. In the second part. you'll be turning this into a java program. one they just came In-no backtracking!)the user must be glven the optlon between going to the other room or explorlng an item in the current room. If the user is in a room that has no other exit, then they must be given the option between exploring the items in the room. .The user will have a backpack that contains the item they've collected So let's get started! during their journey The backpack does NOT have to be an array The backpack can be a simple string. which can contain the item that a user has. Use the contains method on the string that is acting as the user's inventory to find out what item(s) they currently contain. o a Part 1: Your haunted house adventure! Ever since you were a little kid, there has been this one house at the end of the street that is dark and scary. Everyone says that its haunted! Of course, you don't believe in those things. but it has insptred you. so you've decided to create an interactlve a string) will return true if the word haunted house adventure for your frlends. Here's the layout ofthe house: string" is anywhere within the string inventory Front Door Master Bathrcom Here are the possible outcomes for exploring items in each room" Item(s Chest utcome Ghost escapes a Light up by themselves and see a death shadow Living Room scares you to death Master Bedroom Dining Room Kitchen Refrigerator Open it and find some delicious soul food The dishes and glasses start flying at you as soon as you open the door. You get hit in the head and feel yourself start moving towards a light Cabinet PantryBathroom usty reclpeYou open it up and a reclpe box antry chocolate devlls food cake appears our of no where Kitchen Dining Room Bedroom2 Bedroom 1 antry room ies up in the air as soon as you touc it See a blood Bathroom Bathroonm Mirror ce looking back atyou Up Stairs (2d Floor) Ifyou want a challenge,you may include the ability to backtrack i You may. if you wish, add to the number of items available in a room, andfor change the outcome of exploring speclfic items. However, you cannot decrease the number of options in a room Down Stairs (1s Floor) The user always starts the game at the front door and must immediately decide where they want to go. Your movement constraints are as follows Assignment 3: Haunted House .From the front door, the user must choose between going into the living room, dining room or up the stairs, To get from one room to the next, there must be get to some rooms, the user must go through other rooms. See the above dlagram for more detalls. door. That means that to For this assignment you will be building a class, creating objects, doing comparisons and using nested control statements. You need to remember what you have learned in class, lab, books and your assignments. Be sure to refer to them when you need to. If the user is in a room that is attached to another room via a door (not the There are 2 parts to this assignment. In the first part. you are going to be given a problem and you will then need to create a structure, write algorithms and a flow chart to solve it. In the second part. you'll be turning this into a java program. one they just came In-no backtracking!)the user must be glven the optlon between going to the other room or explorlng an item in the current room. If the user is in a room that has no other exit, then they must be given the option between exploring the items in the room. .The user will have a backpack that contains the item they've collected So let's get started! during their journey The backpack does NOT have to be an array The backpack can be a simple string. which can contain the item that a user has. Use the contains method on the string that is acting as the user's inventory to find out what item(s) they currently contain. o a Part 1: Your haunted house adventure! Ever since you were a little kid, there has been this one house at the end of the street that is dark and scary. Everyone says that its haunted! Of course, you don't believe in those things. but it has insptred you. so you've decided to create an interactlve a string) will return true if the word haunted house adventure for your frlends. Here's the layout ofthe house: string" is anywhere within the string inventory Front Door Master Bathrcom Here are the possible outcomes for exploring items in each room" Item(s Chest utcome Ghost escapes a Light up by themselves and see a death shadow Living Room scares you to death Master Bedroom Dining Room Kitchen Refrigerator Open it and find some delicious soul food The dishes and glasses start flying at you as soon as you open the door. You get hit in the head and feel yourself start moving towards a light Cabinet PantryBathroom usty reclpeYou open it up and a reclpe box antry chocolate devlls food cake appears our of no where Kitchen Dining Room Bedroom2 Bedroom 1 antry room ies up in the air as soon as you touc it See a blood Bathroom Bathroonm Mirror ce looking back atyou Up Stairs (2d Floor) Ifyou want a challenge,you may include the ability to backtrack i You may. if you wish, add to the number of items available in a room, andfor change the outcome of exploring speclfic items. However, you cannot decrease the number of options in a room Down Stairs (1s Floor) The user always starts the game at the front door and must immediately decide where they want to go. Your movement constraints are as follows

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions

Question

What is the preferred personality?

Answered: 1 week ago

Question

What is the relationship between humans?

Answered: 1 week ago