Question: Write a program that will input temperatures for consecutive days. The program will store these values into an array and call a function that

 Write a program that will input temperatures for consecutive days. The program  

Write a program that will input temperatures for consecutive days. The program will store these values into an array and call a function that will return the average of the temperatures. It will also call a function that will return the highest temperature and a function that will return the lowest temperature. The user will input the number of temperatures to be read. There will be no more than 50 temperatures. Use typedef to declare the array type. The average should be displayed to two decimal places. Sample Run: Please input the number of temperatures to be read 5 Input temperature 1: 68 Input temperature 2: 75 Input temperature 3: 36 Input temperature 4: 91 Input temperature 5: 84 The average temperature is 70.80. The highest temperature is 91.00 The lowest temperature is 36.00

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Algorithms Questions!