Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this assignment you will create a Java program that uses user input to provide data to be used for a calculation of your choice

In this assignment you will create a Java program that uses user input to provide data to be used for a calculation of your choice and prints out the results. The calculation has to be the implementation of a formula (like calculating a volume, area, investment result, etc.; it cannot be just randomly adding three numbers, or such).

Your program must meet the following qualitative and quantitative criteria:

  1. The program must start by printing a text describing the calculation to be done.
    • You cannot use the home assignment from lecture 3.
  2. The program must prompt for and retrieve from the user at least two values of any kind.
  3. The program must randomly generate a third input data item using the Random class.
  4. The program must display to the user the nature and the value of the random data item.
  5. The calculation must include at least one function from the Math Class
  6. The program must perform the calculation
  7. The program must print the result and an explanation as to the nature of the result

Meeting each of the above criteria will earn 1 mark. No marks will be given for correct programming style (use of the standard template, use of comments, correct alignment of statements, good choice of names, appropriate use of case), but practicing good style is highly encouraged, as it will be marked in the second assignment.

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

Students also viewed these Databases questions