Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program that computes the average temperature for days with fog in June

ID: 3543564 • Letter: W

Question

Write a program that computes the average temperature for days with fog in June - December, 1991.Write output to both the

screen and an output file named av_temp_foggy_days.dat. Include the file names in the code so there is no need to prompt the user for file names. (File names : " MAY91.DAT"  etc.)


The order of data in the file is

Column:              1               2                 3           4                  9

Data:               day 3      max T         min T         avg. T      fog

Columns 8 through 18 are weather types with column 9 being fog. 1 = fog that day, 0 = no fog

that day.

Output: The average temperature for the 5 foggy days in May, 1991: 56.2.

Or

There were no foggy days in May, 1991

Explanation / Answer


Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote