Question: Temperature Data Analysis Problem Statement: Write a C + + program that records and analyzes daily temperature data for a week. The program should allow
Temperature Data Analysis
Problem Statement: Write a C program that records and analyzes daily temperature
data for a week. The program should allow the user to input temperatures, and then
perform various operations such as calculating the average temperature, finding the
highest and lowest temperatures
Requirements:
Input Temperatures:
o Use a singledimension array to store the temperatures for days.
o Each temperature should be a floatingpoint number representing the
temperature in degrees Fahrenheit.
Function Definitions:
o double calculateAverageTemperatureconst double temperatures int size:
Calculate and return the average temperature for the week.
o double findHighestTemperatureconst double temperatures int size: Find
and return the highest temperature of the week.
o double findLowestTemperatureconst double temperatures int size: Find
and return the lowest temperature of the week.
Main Program:
o The program should allow the user to input the temperature for each day of
the week.
o After inputting the temperatures, the program should use the above
functions to:
Calculate and display the average temperature for the week.
Find and display the highest temperature recorded during the week.
Find and display the lowest temperature recorded during the week.
Example Output:
Enter the temperature for day :
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
