I have a homework assignment, which is listed below, and for some reason I just cannot think of how to start writing this code. Any help would be appreciated.
For a number N input by the user,
Print the average of all numbers from 1 to N,
Print the average of all even numbers from 1 to N, and
Print the average of all odd numbers from 1 to N.
Print the highest average value
Print the least average value