Question: Solve the following problems: 1. Write a Java class, name it Compute, that will perform the following: - prompt the user then read two integer
Solve the following problems:
1. Write a Java class, name it Compute, that will perform the following:
- prompt the user then read two integer numbers from the keyboard
- compute the sum, difference, product of the two numbers entered
- print these values on the screen
2. Write a Java class that will implement the above problem using methods (sum, diff, and product).
Please write out the code. No screen shots please.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
