Project #45489 - C++

Write a program that reads in from a file a starting month name, an ending month name, and then the monthly rainfall for each month during that period. As it does this, it should sum the rainfall amounts and then report the total rainfall and average rainfall for the period.

For example, the output might look like this:  During the months of March–June the total rainfall was 7.32 inches and the average monthly rainfall was 1.83 inches.

Data for the program can be found in the Rainfall.txt file.

Hint: After reading in the month names, you will need to read in rain amounts until the end of file (EOF) is reached, and count how many pieces of rain data you read in.

Subject Computer
Due By (Pacific Time) 10/30/2014 12:00 am
Report DMCA
TutorRating
pallavi

Chat Now!

out of 1971 reviews
More..
amosmm

Chat Now!

out of 766 reviews
More..
PhyzKyd

Chat Now!

out of 1164 reviews
More..
rajdeep77

Chat Now!

out of 721 reviews
More..
sctys

Chat Now!

out of 1600 reviews
More..
sharadgreen

Chat Now!

out of 770 reviews
More..
topnotcher

Chat Now!

out of 766 reviews
More..
XXXIAO

Chat Now!

out of 680 reviews
More..
All Rights Reserved. Copyright by AceMyHW.com - Copyright Policy