Implement a class Average which consists of the main method and average method. Inside the main method, call average method. Print the value return by the average method.

Next, overload the average method such that if three integers are provided as parameters, the method returns the average of all three. Modify main method by adding a statement to invoke the overload method.
Then, create another overload average method to accept four integer parameters and return their average. Modify main method by adding a statement to invoke the latest overload method.

Please show the work you have and where you’re stuck. We are a free community of members helping members, and so you’re going to have a rough time convincing people to just do your homework entirely for you for free.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.