Answered step by step
Verified Expert Solution
Question
1 Approved Answer
M New + Output Docs Assignment Grade More CYOA.java 5 points Status: Not Submitted 5.3.8 C.Y.O.A. Finishing the story Submit + Continue Save 1. import
M New + Output Docs Assignment Grade More CYOA.java 5 points Status: Not Submitted 5.3.8 C.Y.O.A. Finishing the story Submit + Continue Save 1. import java.util.Scanner; 2 3 public class CYOA 4. 5 public static void main(String[] args) 6 - { 7 // Start by importing your code from the previous exercise 8 } 3 91 You are now going to complete your Choose Your Own Adventure vacation planner that you outlined in the previous exercise. You should start by copying over your code from the previous exercise and then start filling in the details. You will be using nested if statements to help choose the path to one of your activities. Hint It can be hard to predict what the user will enter, so you may want to cast the user input to uppercase and then just look at the first letter to help analyze their input. For example: : System.out.print("Do you want to travel to [Poland or (Japan? "); String firstChoice - input.nextLine: if (firstChoice.toUpperCase().substring(,1).equals("P") Writing Classes 5.1 5.2 5.3 5.4 5.5 5.6 5.7 5.8 5.9 5.10 5.11
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started