ScholarMatic | 24/7 Homework Help

ScholarMatic Will Help You Write Your Essays and Term Papers

Answered » You can buy a ready-made answer or pick a professional tutor to order an original one.

java program

by | Nov 29, 2023 | questions

Write a program that will tell an interactive fiction story.

Further lets begin doing so program design. Make sure your program is broken down into several methods. You can use a single class. Below are the methods you should implement and a discription of what those methods should do. None of these methods are allowed to be static methods.

getInput should return the user input. This is the only method allowed to use a Scanner or JOptionPane object.
printOutput should be the only method that prints to the screen.
StoryLoop: this method will do the majority of the work in the program.

Make Story loop

You should loop through a getinput-check-printOutput loop untill the story ends. (you can use an infinite loop and then when an ending state is reached, use a break to leave the loop. Or just check a done flag [implemented as an instance variable] which starts out as false and then is set to true when the story is done. )
You should have at least one path through the story that will result in you having at least 6 interactions with the user
the other paths through the story should have at least 3 interactions.
There should be at least 2 choices at each interaction with the user.
When the story is over, exit the program.
Use the player’s character name at least once in the story. (so before you begin you should ask the player what his/her name is and record that somewhere – perhaps an instance variable)
You are welcome to add any additional support methods that you need to this rather minimal list of methods. Of course you will need a constructor for your class to initialize the instance variables and a main method to start things off as well.

ScholarMatic: Explanation & Answer

Your ready answer from a verified tutor is just a click away for as little as $14.99


  

Click Order Now to get 100% Original Answer Customized to your instructions!

HOME TO CERTIFIED WRITERS

Why Place An Order With Us?

  • Certified Editors
  • 24/7 Customer Support
  • Profesional Research
  • Easy to Use System Interface
  • Student Friendly Pricing

Have a similar question?

PLAGIRAISM FREE PAPERS

All papers we provide are well-researched, properly formatted and cited.

TOP QUALITY

All papers we provide are well-researched, properly formatted and cited.

HIGHLY SECURED

All papers we provide are well-researched, properly formatted and cited.

ScholarMatic: Get Started

Assignment Writing Service

Feel safe and secure when placing an order on our portal!
Fruitful cooperation begins with solid guarantees, and we are professional enough to promise perfect results. Let’s get it started!