Calculate Stats

Your task is to process a sequence of integer numbers to determine the following statistics:

For example: [6, 9, 15, -2, 92, 11]

If you try to calculate the statistics of an empty sequence, it should throw an exception or otherwise return immediately with the message “sequence is empty”.

Acknowledgments

This kata is described on cyber-dojo.org

Referenced in these Learning Hours: