Question: Write a C++ program that does the following: . In the main) function, declare an array of numbers (may be float, double, or int). You

 Write a C++ program that does the following: . In the

Write a C++ program that does the following: . In the main) function, declare an array of numbers (may be float, double, or int). You may choose any size of the array larger or equal to 10. Also, declare a second array of double of size exactly 3. DO NOT USE THE C++11 array or STL vector. The main function should then call the three functions described below one after another in the correct order Write a function that takes the larger array as a parameter. The function has a loop. In the loop it reads as many numbers from the keyboard as a user wants to input into the array. However, make sure that numbers entered are fewer than the array size. You should count how many numbers have been entered into the array. After the loop, the count of numbers should be returned. . Write another function that takes both arrays and the count of numbers as parameters. Using a loop, find the smallest number, the largest number, and the average of the numbers. These numbers will be put in the array of size 3 with the smallest going in the first position, the largest going in the second position, and the average going in the third position. Write a fourth function that takes the array of size 3 as a parameter. It then displays the values of smallest, largest, and average that are stored in the array as follows STATISTICS Minimum Maximum Mean Use the setw and setprecision) functions found in iomanip library for formatting

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 Databases Questions!