Theprogram'smainfunctionmustcallthefollowingthreefunctionsinthegiven order. No any external variables are used by main.
void get_prices(int *, double []);
double *max_avg_sum(double [], int, double *, double *);
void near_avg(double [], int, double, double *);
2. get_pricesfirstpromptsamessage"Howmanypriceswillyouenter?"and based on this input number, it reads all prices into a double type array, which is defined by the 2nd parameter of this function. The price values could be positive,
Get Free Quote!
279 Experts Online