Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #54.9K
Does anyone know how to write a (preferably) console app that would find the modal value of a set of data that you entered? |
|
Re:
Current Code: [CODE] void findMode(int *array, int size) { int array2[size]; int count; int x; int mode = 0; for (count = 0; count < size; count++) { x = array[count]; array2[x] = array2[x]++; } for ( count = 0; count < size; count++) { if (array2[count] > mode) mode … |