1. Modify the program to add a function to sum the rainfall for each year (Solution)

$14.99
1. Modify the program to add a function to sum the rainfall for each year (Solution)
  1. Modify the program to add a function to sum the rainfall for each year. (Hint: you need to sum for each year. You can do this using a looping structure). Support your experimentation with screen captures of executing the new code.

  2. Enhance the program to allow the user to enter another meteorological element such as windspeed (e.g. 2.4 mph). Note, the user should be able to enter both rainfall and windspeed in your new implementation. Support your experimentation with screen captures of executing the new code.

  3. Prepare a new test table with at least 2 distinct test cases listing input and expected output for the code you created after step 2.

  4. What happens if you change the NUMMONTHS and NUMYEARS definitions to other values? Be sure to use both lower and higher values. Describe and implement fixes for any issues if errors results. Support your experimentation with screen captures of executing the new code.