Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Java application that inputs three integers from a user and displays the sum, average, product, smallest, largest, range and median of the numbers.

Write a Java application that inputs three integers from a user and displays the sum, average, product, smallest, largest, range and median of the numbers. Please also calculate the largest divide by the smallest number provide the quotient and remainder. Use the techniques showed in chapter 2 to do this assignment. The attached files ( in CISP401V11A1.zip) could be a good base for this assignment. [Note: The calculation of the average in this exercise should result in an integer representation of the average. So if the sum of the values is 7, the average should be 2, not 2.3333.]

You can find the needed techniques in chapter 1~ 2. You can also use more advance skills to do this assignment.

This assignment comes with a CISP401V11A1.zip file. It includes two files (Calculate2.class, and Comparison.java.) The Comparison.java is base for you to start this program. So you dont need to start from scratch.

The Calculate2.class file is an executable file. You can place Calculate2.class in a sub folder (directory). Bring up a command prompt and go to the sub directory, type java Calculate2 in the sub directory and hit Enter key. You should see the program run. If you put in proper information you should get to the result in the following pictures.

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_2

Step: 3

blur-text-image_3

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

Learning PostgreSQL

Authors: Salahaldin Juba, Achim Vannahme, Andrey Volkov

1st Edition

178398919X, 9781783989195

More Books

Students also viewed these Databases questions

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago