Question

IN JAVA!!! PSEUDOCODE ONLY!!! Back in my Day! Kids who grew up in the late 70s...

IN JAVA!!! PSEUDOCODE ONLY!!!

Back in my Day! Kids who grew up in the late 70s didn’t have a lot of options for video games, but they did have “Choose your own Adventure” books. These books were cool and let the reader make meaningful decisions. If they chose choice “A”, they would turn to a page of the book and continue their adventure. If they chose choice “B”, they would turn to a different page and read a different adventure. Your task is to design (pseudocode) and implement (source code) for a story that has four different outcomes based on two different user inputs. See appendix for checking string equality.

Sample run 1: It is a dark and stormy night. Do you want to take an umbrella? (Y/N): Y

Good - you have an umbrella.

You start to walk down a path and hear a scream. You realize that the person screaming is YOU because you see a wolf! Do you fight with your umbrella or run? ((F)ight/(R)un): F

You take out your umbrella and jab it into the wolf's paw! It runs away and you live another day.

Sample run 2: It is a dark and stormy night. Do you want to take an umbrella? (Y/N): Y

Good - you have an umbrella. You start to walk down a path and hear a scream.

You realize that the person screaming is YOU because you see a wolf! Do you fight with your umbrella or run? ((F)ight/(R)un): R

You begin running so fast, the umbrella opens and you fly away like Mary Poppins.

You're a little embarrassed, but you see the wolf fading off in the distance.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

SOLUTION

PSEUDOCODE step 1 Start the program step 2 Declare the variable umbrella, fight_or_run as String step 3 user Read the input dstep 7 display the output You begin running fast, the umbrella opens and you fly away like Mary Poppins. Youre a little emb

//OUTPUT

D:N>javac Adventure.java DENjava Adventure Good-you have an umbrella. It is a dark and stormy night. Do you want to take an u

Add a comment
Know the answer?
Add Answer to:
IN JAVA!!! PSEUDOCODE ONLY!!! Back in my Day! Kids who grew up in the late 70s...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I need help with this in C# and also the Pseudocode. Program 1: Back in my...

    I need help with this in C# and also the Pseudocode. Program 1: Back in my Day! Kids who grew up in the late 70s didn’t have a lot of options for video games, but they did have “Choose your own Adventure” books. These books were cool and let the reader make meaningful decisions. If they chose choice “A”, they would turn to a page of the book and continue their adventure. If they chose choice “B”, they would turn...

  • Back in my Day!  Kids who grew up in the late 70s didn’t have a lot of...

    Back in my Day!  Kids who grew up in the late 70s didn’t have a lot of options for video games, but they did have “Choose your own Adventure” books. These books were cool and let the reader make meaningful decisions.  If they chose choice “A”, they would turn to a page of the book and continue their adventure.  If they chose choice “B”, they would turn to a different page and read a different adventure.  Your task is to design (pseudocode) and implement...

  • The file containing the JAVA files, pseudocode file and doc file that have written for this...

    The file containing the JAVA files, pseudocode file and doc file that have written for this lab. Preamble The file releasedates.txt contains a list of video games and their release dates. Each line of the file contains the release date, a tab character, and then the name. The list is currently totally unsorted. The object of today's lab is to write a series of methods that allow us to perform the following tasks: read contents from a file and store...

  • Distinguishing Between Inferences and Assumptions To be skilled in critical thinking is to be able to...

    Distinguishing Between Inferences and Assumptions To be skilled in critical thinking is to be able to take one’s thinking apart systematically, to analyze each part, assess it for quality and then improve it. The first step in this process is understanding the parts of thinking, or elements of reasoning. These elements are: purpose, question, information, inference, assumption, point of view, concepts, and implications. They are present in the mind whenever we reason. To take command of our thinking, we need...

  • David’s Story “Life is difficult.” I once read these three trivial words in a book, but...

    David’s Story “Life is difficult.” I once read these three trivial words in a book, but never knew how true to life and impactful they would be until one fateful fall evening. Before I begin, let me back up and tell you more about who I am and how I got here. I am a Caucasian male raised in a small conservative town in Maine by hard-working middle-class parents. My compassionate mother juggled raising three rambunctious children, me being the...

  • While reading the story, consider the culture (or sub culture) and related communication styles the story...

    While reading the story, consider the culture (or sub culture) and related communication styles the story reveals. Consider too, possibly, the values, behavioral norms, social practices, social artifacts, etc. After reading the story through the lens of this idea, please compose a full academic length (evidence-based 7 to 11 sentence long) paragraph which addresses the following prompt: What does the story reveal about the culture it portrays and/OR the communication styles the culture shares? In other words, what does the...

  • Hi there! I need to compare two essay into 1 essay, and make it interesting and...

    Hi there! I need to compare two essay into 1 essay, and make it interesting and choose couple topics which im going to talk about in my essay FIRST ESSAY “Teaching New Worlds/New Words” bell hooks Like desire, language disrupts, refuses to be contained within boundaries. It speaks itself against our will, in words and thoughts that intrude, even violate the most private spaces of mind and body. It was in my first year of college that I read Adrienne...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT