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%
Try it now!
How it works?
Follow these simple steps to get your paper done
Place your order
Fill in the order form and provide all details of your assignment.
Proceed with the payment
Choose the payment system that suits you most.
Receive the final file
Once your paper is ready, we will email it to you.
Quality Essay Help has stood as the world’s leading custom essay writing services providers. Once you enter all the details in the order form under the place order button, the rest is up to us.
At Quality Essay Help, we prioritize on all aspects that bring about a good grade such as impeccable grammar, proper structure, zero-plagiarism and conformance to guidelines. Our experienced team of writers will help you completed your essays and other assignments.
Admission and Business Papers
Be assured that you’ll definitely get accepted to the Master’s level program at any university once you enter all the details in the order form. We won’t leave you here; we will also help you secure a good position in your aspired workplace by creating an outstanding resume or portfolio once you place an order.
Editing and Proofreading
Our skilled editing and writing team will help you restructure you paper, paraphrase, correct grammar and replace plagiarized sections on your paper just on time. The service is geared toward eliminating any mistakes and rather enhancing better quality.
We have writers in almost all fields including the most technical fields. You don’t have to worry about the complexity of your paper. Simply enter as much details as possible in the place order section.