Write a non-static method called average that accepts two integer parameters and returns their average as a double value. Overload the average method in the above such that if three integers are provided as parameters, the method returns the double value of all three.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter8: Advanced Method Concepts
Section: Chapter Questions
Problem 7E
icon
Related questions
Question

Write a non-static method called average that accepts two integer parameters and returns their average as a double value.

Overload the average method in the above such that if three integers are provided as parameters, the method returns the double value of all three.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,