Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program in c# named averages that includes a method that accepts any number of numeric parameters, displays them, and displays their average. Demonstrate

Write a program in c# named averages that includes a method that accepts any number of numeric parameters, displays them, and displays their average. Demonstrate that the method works correctly when passed one, two or three numbers, or an array of numbers.

Note: The program should use the following data:

Three list of numeric values-the ones seen in parenthesis

One array of numeric values-the ones seen in square braces

Also please note that the user should have the ability to input any values they want into the program and have the program find the average of the elements.

Sample output--------

For the list (3) the average of its elements is : 3.00

For the list (12,15) the average of its elements is 13.50

For the list (22.3,44.5,88.1) the average of its elements is 51.63

For the list [3,4,5,6,7,8] the average of its elements is 5.50

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

More Books

Students also viewed these Databases questions

Question

3. How has Starbucks changed since its early days?

Answered: 1 week ago

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago