Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started