Design a class called SimpleCalculator using psudoecode that contains public methodsnamed add(), subtract(). Each of the methods accepts two numeric argumentsand returns a number that represents the result of the appropriate arithmetic operation.Design a sub-class of SimpleCalculator called Calculator using psudoecode thatcontains public methods named multiply(), and divide() and that defines private fieldscalled num1 and num2. Each of the methods accepts two numeric arguments andreturns a number that represents the result of the appropriate arethmetic operation.Design a two-arg constructor Calculator() that sets the two values num1 and num2.Design a main() method that prompts the user for two numbers and reads them in.Then creates an instance of the Calculator class setting the input values via theCalculator constructor. The main() method then tries each of the four arithmeticmethods. Assume that an DivideByZero is created and thrown if the user attempts todivide by 0. Display an appropriate message when an exception is caught. If noexception, display the results from each arithmetic method call.
How your answer will be gradedFile turned in is in PDF format 5.00%SimpleCalculator class is correctly declared 5.00%SimpleCalculator class contains correct arthmetic methodsr 10.00%Calculator class contains a two arg constructor 10.00%Calculator class is correctly declared 20.00%Calculator class contains correct arthmetic methods 20.00%Calculator main() method is correct including exception handling 30.00%
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.Read more
Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.Read more
Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.Read more
Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.Read more
By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.Read more