Question: Write another program called calculator that inherits from class average and also has methods that has: two methods multiply() to calculate the product of the

Write another program called calculator that inherits from class average and also has methods that has: two methods multiply() to calculate the product of the numbers. One method will have two parameters which are both ints. The second method has three parameters: two ints and a Double. Another method Power that finds the power of a number using methods. For example, if the user types in: 5 and 3, the program should print out 125. 3. And another method Factorial which finds the factorial of a number using methods. Create a tester class to test all methods. Ask for user input.

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