Reference no: EM13620769
Write a function that calculates the average and range of every five observations in the dataset? If the number of values in the last group of numbers is less than 5 it needs to gives a note about it.
For example if the data are 3,4,5,6,7,2,3,4,5,6,6,1
The function should return:
The average and range of (3,4,5,6,7)
and average and range of (2,3,4,5,6)
and average and range for (6,1) and
a message that in the last group you have only 2 values.