Question: Write a program which prompts the user to enter the number of values to process (a maximum of 100). Next prompt, and allow the user
0Rte a program which prompts the user to enter the number of values to process tore these values in an array. Print the largest value, the smallest value, and the average (to 2 decimal places) of the values in the array. You must use functions for each of these tasks. The due: see http llece160.org (a maximum of 100). Next prompt, and allow the user to enter each ot the values change the array The prototypes for the functions must be: GetValues() function is the only function that may void GetValues (int x[l,int pa) int FindBig (int xl, int n); int FindSml (int xl. int n): float FindAvg (int x. int n); Getvalues should put values in both the xt1 array and at pu FindBig should return the largest integer in the first n elements of xt Findsml should return the smallest integer in the first n elements of x FindAvg should return the average of the first n elements of x t1 Thus, the main program should exactly something like the following #de fine CRTSECURENOWARNINGS #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
