Question: C++ Exercise#2: All Purpose Function Write a main() function that prompts the user to enter a positive integer n then calls the following function which
C++ Exercise#2: All Purpose Function Write a main() function that prompts the user to enter a positive integer n then calls the following function which generates n random numbers each of which is between 35 and 99: void allPurpose(int, int&, int&, float&) The function finds the minimum, maximum, and average of the generated numbers. The main() function prints all the generated numbers, the minimum, the maximum, and the average. Sample Input/ output: ter hou many nunbers: 10 he generated nunbers are: 379288 61 96 93 97 40 76 94 35 37 he nininun is: 35 he maxinum is:9 he average is: 62.9
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
