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 amount, from highest to lowest.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here