Question: Create a Java class that asks the user for 3 integer values and calculates the following a. the sum of the squares of each value

Create a Java class that asks the user for 3 integer values and calculates the following

a. the sum of the squares of each value

b. the square of the sum of the 3 values

The output in each case must be as part of a descriptive sentence.

Example output:

Input first number: 2

Input second number: 3

Input third number: 4

The sum of the squares of 2, 3 and 4 is 29.

The square of the sum of 2, 3 and 4 is 81.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!