Question: Write a C + + program that will create an array of type double numbers with a given number of elements. Use the number of
Write a C program that will create an array of type double numbers with a given number of elements. Use the number of elements const int size for demonstration purposes, but write the program where the size of the array can be changed by changing the value of one constant. Fill the array with random type double numbers between and using the expression rand to generate the numbers. Write the program to present options to the user as a menu and perform the following operations:
Create a new array with random elements.
Display the elements of the array.
Find and display the largest value in the array.
Find and display the smallest value in the array.
Sort the array in descending order and display the array.
Find and display the mean value.
Find and display the median value.
Find and display the variance.
End
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
