Question: current form, it takes user defined number of input temperatures, and peints these on screen, In your assignment, each team should uncomment the code parts

current form, it takes user defined number of input temperatures, and peints these on screen, In your assignment, each team should uncomment the code parts related to two functions findWarmest and Find Average, and then write the code for each function. The Find Warmest function should find the maximum temperature among user inputs. The FindAverage should calculate the average temperature for user inputs. Makes sure to keep the arguments of each tunction compatible with the provided prototype. Winclude ciomanips Hinclude ciestreams If Prototypes here void Cbtain(intl], int): If void FindWarmesticonat int[], int, int & /. I/void FindAveragejconst int [1 int, int \&]; void Printstconst intll, in: using namespace std; int main() I I/ Array to hold up to 31 temperatures int termp[31]; int humDays; int averages int hattest; int mi cout ee 'How many daily temperatures?" cin > numbays; Obtain(temp, numDays). If Call passes value of numDays and adtress temp cout 0; void Obtain ( out " fint templl, f is "/ int mumber) I/ User enters number temperatures at keyboard I/ Precondition
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
