Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Exercise Fortune: 25 points Create a new project and call it Fortune. Fortune.java: Ensure that you are working inside of the main method Create an
Exercise Fortune: 25 points Create a new project and call it Fortune. Fortune.java: Ensure that you are working inside of the main method Create an instance of Scanner to read input from the user (5 points) Ask the user for their favorite number and read it in. (5 points) Remember the 3 parts of reading input from the user! Ask the user for their favorite color (5 points) If you aren't careful this will cause the question to be skipped. If only we had a lab that we read in both numbers and Strings... )f ) / are might Tell the user you are going to give them their fortune. (10 points) o If the number the user entered is greater than 15 tell the user "You are Mighty" o If the number the user entered is not greater than 15 tell the user "You are Sneaky" If the color the user entered is blue tell the user "and you like the open spaces in life" If the color the user entered is green tell the user "and you like the wildness in life" If the color the user entered is not blue or green tell the user "and you appreciate the industry in life" isc #2 - you Sample Output What is your favorite number: 6 What is your favorite color: blue! Szeak. Here is your fortune: blue You are Mighty and you like the open spaces in life! Exercise Fighter: 50 points
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