Question: Recall that Programming Exercise 3 in Chapter 8 asked you to design a program that lets the user enter the total rainfall for each of
Recall that Programming Exercise 3 in Chapter 8 asked you to design a program that lets the user enter the total rainfall for each of 12 months into an array. The program should calculate and display the total rainfall for the year, the average monthly rainfall, and the months with the highest and lowest amounts. Enhance the program so it sorts the array in ascending order and displays the values it contains.
Programming Exercise 3
Design a program that lets the user enter the total rainfall for each of 12 months into an array. The program should calculate and display the total rainfall for the year, the average monthly rainfall, and the months with the highest and lowest amounts.
Step by Step Solution
3.41 Rating (160 Votes )
There are 3 Steps involved in it
include include include for stdsort const int MONTHS 12 void inputRainfalldouble rainfall int size f... View full answer
Get step-by-step solutions from verified subject matter experts
