#include float findmaxtemp(float[]); float minimumtemp(float);//float[] void gettemps(float temp[]); void display(float); int main() { float temp[10]; float answer=0.00; float a; gettemps(temp); answer=findmaxtemp(temp); a=minimumtemp(answer);//temp display(a); return 0; } float findmaxtemp(float temp[]) { float value; value=temp[0]; for (int i=1; i <=10;i++) { if (value < temp[i]) value=temp[i]; } return value; } float minimumtemp(float temp)//float temp_array { float dew_point; float nextday_maximumtemperature; float maxtemp; printf("\n Please enter a dew point readings"); scanf("%f",&dew_point); if(dew_point > 26 || dew_point < 19) { printf("\n ERROR"); printf("\n Please enter a dew point reading"); scanf("%f", &dew_point); } maxtemp=temp; nextday_maximumtemperature=((maxtemp + dew_point)/2.0)+0.35; return nextday_maximumtemperature; } void gettemps(float temp[]) { printf("\n Please enter ten temperature "); for(int i=0; i<10;i++) { scanf("%f",temp[i]); } } void display(float nextday_maximumtemperature) { printf("\n %2.f", nextday_maximumtemperature); }