News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Please help me with a code or a clue im a first year and im struggling

Started by Thando07, March 25, 2015, 11:25:53 PM

Previous topic - Next topic

Thando07

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.

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Jenna

Not related to Code::Blocks in any wa, so violating our forum rules.

Topic locked !!!