Write TempStats. Read n, then n daily temperatures into a double[]. Print:
Average: 18.4
Days above average (3): 3 4 5
Longest warming streak: 5 days (day 1 to day 5)
Biggest change: 6.5 degrees (day 5 to day 6)
- Days are numbered from 1 for the user, but the array starts at index 0.
- A warming streak is a run of days where each day is warmer than the day before (a single day is a streak of 1). Report the first longest one.
- The biggest change compares each day with the previous one (use
Math.abs).