Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program using if and else statements on dr.java Homework 01 Choose Your Own Adventure! Due 02/08/2019 at 11:55pm Objective: Write a program that allows the

Program using if and else statements on dr.java image text in transcribed
image text in transcribed
Homework 01 Choose Your Own Adventure! Due 02/08/2019 at 11:55pm Objective: Write a program that allows the user to play a "Choose Your Own Adventure" game. In this game the user will be prompted with making decisions, which will then lead them to different paths with different results. Requirements: . There must be at least 9 different endings. . Each ending requires at least two decisions. . To get 3 of the endings there must be at least 3 decisions the player has to make. . There must be at least one example of Numeric comparison, such as equals to, less than etc. o String comparison o A compound Boolean expression o These do not have to be a part of reaching each ending they just have to be in there somewhere . Be creative! Example Dialog: Welcome to the land of Donkeydwarf! Will you go to the inn look for trouble, or talk to the shady looking elf standing near the entrance? Enter "inn", "trouble", or Welf". INN You enter the musty inn, and approach the inn keeper. "Aye you looking to rent a room? Yes or No?", she rasps. Yes "The cheap rooms are filled up, but if you do me a favor then I'i1 let you have a nice suit." Enter yes or no Yes There' s this dragon ya see. He stole all my pickles. I want him to pay! Go make him payYou venture out and find the pickle pilfering dragon. The dragon will give you the pickles if you guess the number it is thinking between 1 and 10. Enter that number. That was not the number I thought of". The dragon roasts you alive and you are consumed with the rest of the stolen pickles. THE END. Homework 01 Choose Your Own Adventure! Due 02/08/2019 at 11:55pm Objective: Write a program that allows the user to play a "Choose Your Own Adventure" game. In this game the user will be prompted with making decisions, which will then lead them to different paths with different results. Requirements: . There must be at least 9 different endings. . Each ending requires at least two decisions. . To get 3 of the endings there must be at least 3 decisions the player has to make. . There must be at least one example of Numeric comparison, such as equals to, less than etc. o String comparison o A compound Boolean expression o These do not have to be a part of reaching each ending they just have to be in there somewhere . Be creative! Example Dialog: Welcome to the land of Donkeydwarf! Will you go to the inn look for trouble, or talk to the shady looking elf standing near the entrance? Enter "inn", "trouble", or Welf". INN You enter the musty inn, and approach the inn keeper. "Aye you looking to rent a room? Yes or No?", she rasps. Yes "The cheap rooms are filled up, but if you do me a favor then I'i1 let you have a nice suit." Enter yes or no Yes There' s this dragon ya see. He stole all my pickles. I want him to pay! Go make him payYou venture out and find the pickle pilfering dragon. The dragon will give you the pickles if you guess the number it is thinking between 1 and 10. Enter that number. That was not the number I thought of". The dragon roasts you alive and you are consumed with the rest of the stolen pickles. THE END

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

Database Fundamentals Study Guide

Authors: Dr. Sergio Pisano

1st Edition

B09K1WW84J, 979-8985115307

More Books

Students also viewed these Databases questions