Answered step by step
Verified Expert Solution
Link Copied!

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

  1. 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

  1. A number with a decimal point (double)
  2. A whole number (int)
  3. A single character (char)
  4. A single word (String)
  5. A sentence (String)
  6. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

From Herds To Insights Harnessing Data Analytics For Sustainable Livestock Farming

Authors: Prof Suresh Neethirajan

1st Edition

B0CFD6K6KK, 979-8857075487

More Books

Students also viewed these Databases questions

Question

What are the purposes of collection messages? (Objective 5)

Answered: 1 week ago