Write a program to help Ellie to determine whether she should hide from the zombies or...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Answer rating: 100% (QA)
Answer import javautilScanner A program to help Ellie decide whether to hide from zombies or run fro... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Write a C program for linked list implementation of list.
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
The Crazy Eddie fraud may appear smaller and gentler than the massive billion-dollar frauds exposed in recent times, such as Bernie Madoffs Ponzi scheme, frauds in the subprime mortgage market, the...
-
4. This problem investigates nearest neighbor and bilinear interpolation. For simplicity, we will focus on estimating the image intensity at a single location. Interpolation is used when transforming...
-
(a) Isoleucine has been prepared by the following sequence of reactions. Give the structure of compounds A through D isolated as intermediates in this synthesis. (b) An analogous procedure has been...
-
Marine, Inc., manufactures a product that is available in both a flexible and a rigid model. The company has made the rigid model for years; the flexible model was introduced several years ago to tap...
-
Determine the maximum axial force P that can be applied so as not to exceed an allowable tensile stress of allow = 200 MPa. P 40 mm 40 mm 120 mm 30 mm += 22 mm P
-
Marcia Saxton worked for Jerry Richardson, a supervisor at AT&Ts International Division. Richardson made advances to Saxton on two occasions over a three-week period. Each time Saxton told him she...
-
You are provided with the following information for Carla Vista Co., effective as of its April 30, 2025, year-end. Accounts payable $844 Accounts receivable 840 Accumulated depreciation-equipment 640...
-
A base band digital transmission system that sends A-valued rectangular pulses through a channel at a rate of 20,000 bps is to achieve an error probability of 10 -6 . If the noise power spectral...
-
Use the functions f(x) a. f(9) b. f(-7): c. g(8) = d. g(-2): e. g(a) Hint: = = 15 4x and g(x) = 4x + x + 3 to evaluate the following:
-
What is the background, facts and conclusions, comments from the judge about this case? A brief summary with facts. Simpsons limited v canadian union of brewery, flour, Cereal, Soft Drink and...
-
Consider a U.S. Corporate bond that pays semi-annual coupons with settlement of May 12, 2018. The bond matures on March 1, 2046. The bond's coupon rate is 3% and has a yield of 3%. What is the bond's...
-
The Quarantine Corporation began operations in March 2024. The following is a condensed balance sheet as of March 31, 2024. The owners did not take any distributions from the business in March. Cash...
-
An amount of AED 24900 is deposited to a savings account for 50 weeks at a simple interest rate of 3.1% per annum. How much interest did your money earn at the end of the period
-
A high gravity wall with a height of five feet, six inches is used to contain a soil with an equivalent fluid density of 30 pcf. If concrete has a density of 150 pcf, de- termine the wall's factor of...
-
An n xn-matrix A is a said to be defiant if there is a fixed real number r such that the sum of each row, each column, the diagonal, and the anti-diagonal, are all equal to r. In this case, we will...
-
Explain why it is not wise to accept a null hypothesis.
-
In 2012, Lou has a salary of $54,000 from her job. She also has interest income of $1,700. Lou is single and has no dependents. During the year, Lou sold silver coins held as an investment for a...
-
In 2012, Michael has net short-term capital losses of $2,000, a net long-term capital loss of $45,000, and other ordinary taxable income of $45,000. a. Calculate the amount of Michael's deduction for...
-
Skyler is covered by his company's health insurance plan. The health insurance costs his company $3,500 a year. During the year, Skyler is diagnosed with a serious illness and the health insurance...
-
What does the Richter scale measure?
-
Where do earthquakes occur?
-
Why do earthquakes produce seismic waves?
Study smarter with the SolutionInn App