Write a program named Averages that includes a method named Average that accepts any number of numeric parameters, displ

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Write a program named Averages that includes a method named Average that accepts any number of numeric parameters, displ

Post by answerhappygod »

Write a program named Averages that includes a method namedAverage that accepts any number of numeric parameters, displaysthem, and displays their average. For example, if 7 and 4 werepassed to the method, the output would be: 7 4 -- Average is 5.5Test your function in your Main(). Tests will be run againstAverage() to determine that it works correctly when passed one,two, or three numbers, or an array of numbers.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply