Write a program that lets the user enter the total rainfall for each of 12 months into an array of doubles. The program should use functions that: - calculate and display the total rainfall for the year, - calculates the average monthly rainfall, - displays the month with the highest amount of rainfall, - displays the month with the lowest amount of rainfall. |
|
|
main()
.double
.
|
|
TotalRainFall
const unsigned short
, and change all the size parameters in the functions to be const unsigned short
as well.const
as welldouble TotalRainFall = 0.0;
or .0