Question: Ex 7.1 and Ex 7.2 Ex 7.1 Write a method called average that accepts two integer parameters and returns their average as a floating-point value.
Ex 7.1 and Ex 7.2
Ex 7.1 Write a method called average that accepts two integer parameters and returns their average as a floating-point value.
Ex 7.2 Overload the average method of Exercise 7.1 such that if three integers are provided as parameters, the method returns the average of all three.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
