You get data sets for 4 years 2012, 2013, 2014, 2015. Within each dataset is information about date, time, air temperature, barometric pressure, dew point, relative humidity, direction wind, ....
- Load data and use std::map<time_t, double> to store time and data of atmospheric pressure
- Look for the lowest barometric pressure during the beginning and the end. Then calculate the time difference and barometric pressure difference. Calculate the coefficient according to the algorithm you want. Here I want to determine the weather depends on the atmospheric pressure. It's all in the computeCoeff function.
- If the calculated coefficient is greater than 0, it is sunny. Less than zero, it might rain. Output information to the screen
- Idea: You can choose to add more components to calculate your coefficients.
- clone the repository
- Any C++ compiler Eg. clang or use an online IDE like replit
- Build using the build command pertaining to the said compiler. Eg. clang: "clang++ -std=c++17 *.cpp -o WeatherStatistics and then Run ./WeatherStatistics"
Input test data
For the date: yyyy_mm_dd
for the time: hh:mm:ss
- Read data from multiple files in C++
- String processing in C++, converting strings to numbers
- Basic time handling in C++