In statistics the mode is the most frequently occurring value in a data-set, it is not
guaranteed to be unique e.g. 3,2,2,4,5,6,1,4,3,2,10,1,1 the modes are 1 and 2.
Write a function based C++ program to calculate the modal values in an array of
integers. The size of this array should be set by a constant in a header file. Since the
result is not always a single value your function must populate a results array.
Write a separate test function which uses predetermined arrays to test your library.
Write a separate test function which uses randomly generated arrays to test your
library.
Write a menu system which allows the user to select between randomly generated
values and predetermined test data.