Question: C programming: Functions, repetition, input file, and decision statements are required. Identifier names should be descriptive. Write a program to track temperature readings at noon

C programming: Functions, repetition, input file, and decision statements are required. Identifier names should be descriptive. Write a program to track temperature readings at noon each day. Temperatures will be entered as Fahrenheit (32 degrees is freezing). Track the number of days the temperature was below freezing, above freezing, and at freezing. Temperatures for each day are stored in a file. The value -999 signifies all temperature readings have been processed from the file. Keep track of how many temperatures were entered. Output the number of days the reading was below freezing, above freezing and at freezing. Calculate the percentage of days the temperature was below freezing. Use a function to calculate the percentage (# of days below freezing/ total temperatures entered) and return the value to main(). Print the percentage in the main() function

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 Databases Questions!