Hello, I am very new to programming and I am currently taking a c++ class. The task was to Write a program that asks the user for rainfall values for each month of a year, one month at a time. The program should then calculate the average monthly rainfall (or snowfall) for the whole year, and then, for each month, print out a line saying how much the rainfall for that month was above or below the average (negative numbers for lower values are fine).
I have written the code below but I have no idea how to even find the above or below averages. If someone can help me understand, I would greatly appreciate it!