Question: Write a C++ console application that allows your user to capture rainfall statistics. Your program should contain an array of 12 doubles for the rainfall
Write a C++ console application that allows your user to capture rainfall statistics. Your program should contain an array of 12 doubles for the rainfall values as well as a parallel array containing the names of the months. Using each of the month names, prompt your user for the total rainfall for that month. The program should validate user input by guarding against rainfall values that are less than zero. After all 12 entries have been made, the program should display a list of the months and their corresponding rainfall values sorted in order by rainfall, from highest to lowest.
Submit two files. A word processing file with your answers to the five Questions and a compressed file containing your solution to the Programming Exercise. Remember to submit them both at the same time.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
