I have been working on this for awhile, but I was hoping to get input from someone with more experience.
I have to stick with the structure and enum format for the assignment, but I was wondering if anyone had any opinions on the way the high/low temperature sections should be done?
Thanks for your help, I appreciate any hints.
I dont quite get it, and it looks like you too are undecided:
What WeatherInfo object represents?
If you need statistics for 3 months, do you create one WeatherInfo for each month, or there is just one WeatherInfo for entire period? Because you measure rainfall independently in each of 3 WeatherInfo's . That would mean you need also provide coldest and warmest temperature for each of three months, correct?
Or maybe each month can only have one temperature?
1 2 3 4 5
WeatherInfo
{
double rainfall;
double temp;
}
And then the function should only calculate average of the 3, compare them to one another and find min and max values?