Question: Complete the following C# code that includes a method named Average() that accepts any number of numeric parameters, displays them, calculates, and displays their average.

Complete the following C# code that includes a method named Average() that accepts any number of numeric parameters, displays them, calculates, and displays their average. Demonstrate that the method works correctly when passed one, two, or three numbers, or an array of numbers. (3 marks) using static System.Console; public class Averages { public static void Main() { // Your code as answer } Complete the following C# code that declares an array of 7 integers. The application allows the user three options: 1. to view the elements of array in reverse order, from the last to first position, 2. to choose a specific position to view, 3. quit the program using System; using static System.Console; class Ar raySeven Integers { static void Main() { // Your code as answer }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
