Write a C# program that creates an array of 50 doubles. You should then write METHODS to do the following: (a) display the contents of the array (void method, with a double array parameter), (b) fill the array with random double values (void method, with a double array parameter), (c) count the elements in the array greater than a passed value (returns an integer, with a double array parameter and a value parameter) ‐‐ value to be checked should be read in from the user, (d) return the range of values in the array by computing the difference between the largest and smallest values (returns a double, with a double array parameter) and (e) report the largest and smallest values in the array (void method, with a double array parameter, and ‘out’ parameters for the largest and smallest values). You may use any of
Write a C#
the contents of the array (void method, with a double array parameter), (b) fill the array with random double values
(void method, with a double array parameter), (c) count the elements in the array greater than a passed value (returns
an integer, with a double array parameter and a value parameter) ‐‐ value to be checked should be read in from the
user, (d) return the range of values in the array by computing the difference between the largest and smallest values
(returns a double, with a double array parameter) and (e) report the largest and smallest values in the array (void
method, with a double array parameter, and ‘out’ parameters for the largest and smallest values). You may use any of
the built in array methods in C# in your implementation of the current methods. Challenge assignment: Write a method
that computes the standard deviation of the elements in the array (returns a double, with a double array parameter)
Here’s some info: https://www.mathsisfun.com/data/standard‐deviation.html

Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 5 images









