Question: write a C++ program that uses a structure to store the following weather data for a particular month: Total rainfall High temperature Low temperature Average

The program should output :
- total rainfall
- Average Monthly Rain: The average monthly rain is total rain of 12 months then divided by 12.
- Average Monthly Average Temperature:
The monthly average Temp is (monthly high temp + monthly low temp)/2.
The average monthly average temp is to add all 12 months' monthly average Temp and then divided by 12.
- Highest Temp and Lowest Temp during the year and the months they occurred in.
Please use an array of 12 elements of the defined structure and loop to input the records. Also, note the temperature input validation in the question. (It is not required to validate highT >=LowT).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
