Question: Enhance the output of Exercise E4.3 so that the numbers are properly aligned: Data from exercise E 4.3 Write a program that prompts the
Enhance the output of Exercise •• E4.3 so that the numbers are properly aligned:

Data from exercise E 4.3
Write a program that prompts the user for two integers and then prints
• The sum
• The difference
• The product
• The average
• The distance (absolute value of the difference)
• The maximum (the larger of the two)
• The minimum (the smaller of the two)
The max and min functions are declared in the Math class.
Sum: Difference: Product: Average: Distance: Maximum: Minimum: 45 -5 500 22.50 5 25 20
Step by Step Solution
3.41 Rating (154 Votes )
There are 3 Steps involved in it
To enhance the output of the program described so that the numbers are properly aligned you will nee... View full answer
Get step-by-step solutions from verified subject matter experts
