Using jGrasp, write a Java program that calculates the sum, average, and product of three user input integer values.
[Note: we use all integer inputs in this program. Thus, the calculation of the sum and product will be integers as well. However, the average of three integer values may not always be an integer. For example, if the sum of the three values is 7, the average should show 2.333... ] (12 pts)
Sample execution:
- Enter first integer: 6
Enter second integer: 4
Enter third integer: 7
The sum of 6, 4, and 7 is 17.
The average of 6, 4, and 7 is 5.666667.
The product of 6, 4, and 7 is 168.
- jGRASP: operation complete.
Using jGrasp, write a Java program that calculates the sum, average, and product of three user input integer values. [Note: we use all integer inputs in this program. Thus, the calculation of the sum and product will be integers as well. However, the average of three integer values may not always be an integer. For example, if the sum of the three values is 7, the average should show 2.333...] (12 pts)
Sample execution: - jGRASP execjava Arithmetic Enter first integer: 6 Enter second integer: 4 Enter third integer: 7
The sum of 6, 4, and 7 is 17 The average of 6, 4, and 7 is 5.666667 The product of 6, 4, and 7 is 168.
jGRASP: operation complete