Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started