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 =10 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 0 and 100 using the expression rand()%100 to generate the numbers. Write the program to present options to the user as a menu and perform the following operations:
1. Create a new array with random elements.
2. Display the elements of the array.
3. Find and display the largest value in the array.
4. Find and display the smallest value in the array.
5. Sort the array in descending order and display the array.
6. Find and display the mean value.
7. Find and display the median value.
8. Find and display the variance.
9. End

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!