Author Topic: Please help me with a code or a clue im a first year and im struggling  (Read 2243 times)

Thando07

  • Guest
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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Please read how to ask a smart question http://www.catb.org/esr/faqs/smart-questions.html

Please read the rules for this site http://forums.codeblocks.org/index.php/topic,9996.0.html

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Not related to Code::Blocks in any wa, so violating our forum rules.

Topic locked !!!