Question: Write a program to help Ellie to determine whether she should hide from the zombies or run from them. Your program should be interactive

Write a program to help Ellie to determine whether she should hide from the zombies or run from them. Your

Write a program to help Ellie to determine whether she should hide from the zombies or run from them. Your program should be interactive and should be based on the flow chart below. The boxes with questions are what you will ask the user. They can answer with either "yes" or "no" to each question. Eventually they will reach one of the two final boxes. where you will be able to recommend that they should hide, or run. HINT: Start by doing the first question only, assuming "no" means they should hide, and "yes" means they should run. If you can get that working, how can you add another question? (and so on) Hide No No Start: Is there a clear path to get away? Do you have something to defend yourself with? Yes Is there more than 1 zombie? No Run Yes Is the closest zombie more than 10 feet away from you? Yes No This program can be written completely in a main method. You should include a javadoc comment block for your class (with the author tag and your name). Other non-javadoc comments (using // and/or //) could also be included within your main method to explain different sections of your code, but that is entirely optional.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer import javautilScanner A program to help Ellie decide whether to hide from zombies or run fro... View full answer

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 Programming Questions!