Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This week we will expand on this program to introduce the use of the Scanner class for reading data from the keyboard (Chapter 2, Section
- This week we will expand on this program to introduce the use of the Scanner class for reading data from the keyboard (Chapter 2, Section 13). You must prompt the user to enter a minimum of 6 values that comprise the following data types and then read those values into variables using the Scanner class. and solve this in java Example: Please enter a double value: 4.231 Please enter a whole number: 3
Etc
- A number with a decimal point (double)
- A whole number (int)
- A single character (char)
- A single word (String)
- A sentence (String)
- A small number (byte)
Now, use these 6 items to generate a funny story using concatenation to fill in the blanks of your story. You must mathematically transform at least one of the numbers the user inputs (in other words, take the number and use it in some type of arithmetic expression and use the resulting value in the story to add an additional element of surprise to your story). Please keep these stories clean as if you were writing them for elementary school students but definitely make them funny!
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