Details:
You will need to write the Story class as defined in the UML below.
- The main method should look like the one below, you may not have more than three lines in the main method
public static void main(String[] args){
Scanner userInput = new Scanner(System.in);
Story myStory = new Story(userInput);
myStory.startStory();
}
- The Story constructor should take its Scanner parameter and assign it to the reader instance variable.
- startStory should print the beginning of your story to the user
and then ask the user to choose one of two choices, (based on your
story) if the user chooses the first choice, call he choiceOne method,
If the user chooses the second choice, choose the choiceTwo method.
Continue to implement the methods in this way (first some story printed
out then a choice, which will call one method for choice one and
another method for choice two) following the flow chart below. Note
that only the StartStory, ChoiceOne and ChoiceTwo methods need if
statements. The rest of them (Ending One-Four) just need
System.out.print statements to tell the story.
Submitting:
again zip up your project folder and submit it to me by email.
Make sure that your submitted zip file
contains your first initial and last name as part of the zip file name.