Question: Write a simple and very basic C + + program ( using Array ) that allows the user to input temperatures recorded over 7 days.
Write a simple and very basic C program using Array that allows the user to input temperatures recorded over days.
The program should:
Calculate the average temperature.
Count how many days had temperatures above the average.
Count how many days had temperatures below the average.
Ex: If the input is:
Enter temperatures for days:
Day :
Day :
Day :
Day :
Day :
Day :
Day :
The output is:
Average Temperature: degrees
Days above average:
Days below average:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
