Okay here's the situation I have 70 years worth of data separated by year which are integer data values, that match up with 12 double values that represent weather data. I am lost on how to read the data in for the given year the user enters and have the corresponding weather data also be printed. Good karma for anyone who can help me!
You'll need to:
0- Create a variable which stores your specific year input.
1- Define an array which contains weather data double weatherData; //12 values for 12 months
2- Input? Create a 12-time loop using a index variable. It should look like this:
Three (If you need), print your results directly on the screen using 12-time loop and screen printing functions (cout, printf)...l
Four (If you need), log your results and specific year input into a txt file, using a 12-time loop.
Edit : You may put all code in while contidion loop to log re-input the values multiple times.
Good luck! :)