The WeatherStatistics
project is a C++ application that collects and analyzes weather statistics. It takes into account total rainfall, high and low temperatures for each month, and calculates averages and extremes over the year.
- Uses structures to hold weather data for each month.
- Input validation for temperature ranges.
- Calculates:
- Average monthly rainfall.
- Total annual rainfall.
- Highest and lowest temperatures of the year.
- Average temperature of the year.
-
Clone the repository: $ git clone [repository link]
-
Navigate to the project directory:
cd WeatherStatistics
-
Compile the code using CMake:
mkdir build cd build cmake .. make
Run the executable generated by the make process:
./WeatherStatistics
Follow the prompts to enter the weather data for each month.
License
Copyright © 2023 Rudy Orahin.
Licensed under the MIT License. See LICENSE
for more information.
Feel free to modify the README to better suit your project. Don't forget to add a LICENSE
file in your GitHub repository and paste the MIT License text into it, crediting you as the copyright holder.