Question: 2) You are creating a new way to do math that uses estimates instead of actual values. You are going to create a new

2) You are creating a new way to do math that uses

2) You are creating a new way to do math that uses estimates instead of actual values. You are going to create a new class called Estimate Math, and inside this class will be only two static methods estimate Add and estimateSubtract. (Basically you are going to begin to create a library) Both methods will take in two integers as parameters. Each number will be rounded to the nearest 10 and then the arithmetic will be done. See next page for examples: EstimateMath.estimateAdd(14,23) would return 30. EstimateMath.estimate Add (16,27) would return 50. To test these methods, write a main method in a separate class file that tests each of these methods by asking the user to input 2 integers and gives the results. Repeat this in a loop until zeros are input. Note: if zeros are input, you should not still attempt to do the math.

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 Programming Questions!