A file is required to record the daily temperatures of a city for one week from Monday to
Sunday. Write a C/C++ program to enter the daily temperatures along with the name of the
day, read the file, compute the average temperature for the week and display it. The final
output of the program should be as follows.
Monday 31
Tuesday 32
Wednesday 33
Thursday 36
Friday 32
Saturday 31
Sunday 32
Average Temperature:- 32.4
Saranika -3 Newbie Poster
Ilia_1 0 Newbie Poster
ddanbe 2,724 Professional Procrastinator Featured Poster
Saranika commented: thank you so much. why use "file.txt" for this.how help it for this programme. +0
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.