How may I start this program to find the average high, average low and average of the averages (the monthly average)of the month May?
He expects the output should be like this:
Expected screen output:
Average High: 73.61 Average Low: 46.87 Monthly Average: 60.48
Std Dev High: 9.74 Std Dev Low: 7.73 Std Dev Average: 7.94
I would rather say that it does not depend. In both cases one reads from a stream. Whether the stream represents cin or file is not relevant for usual reads.
Naturally, if the cin version reguires UI spoonfeeding of the user on what to do next, then that version has more stuff.