Question: Write the code in C++. 08: Write a program that uses these structure to store the following weather data for a particular month: struct Temperature

Write the code in C++.
08: Write a program that uses these structure to store the following weather data for a particular month: struct Temperature double max_temperature; double min_temperature; struct Rainfall int max_rainfall; int min_rainfall; struct weather Rainfall total_rain; Tempearture temp; The program should have an array of 12 structures to hold weather data for an entire year. When the program runs, it should ask the user to enter data for each month. (You are required to calculate average temperature and rain fall for the year). The program then should display month wise average rain fall and temperature similarly it should display average rain fall and temperature of the entire year. Input Validation: Only accept temperatures within the range between -100 and +140 degrees Fahrenheit and rain fall 1 mm to 25mm
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
