Question: I have created a mode function in C++ To determine the mode of an array My only problem is, when there is no mode, ie:

I have created a mode function in C++
To determine the mode of an array
My only problem is, when there is no mode, ie: the I put is: 2, 3, 4, 5
It returns some crazy number
I need to add to my function but am unsure of what to do
 I have created a mode function in C++ To determine the

r monday Project tracking, teamwork & client report Run O Debug return Sum / size; /Ifunction definition for mode //this function will only find a mode if the //if there is no mode, it will not return a double mode (int *array, int size) int Mode, Most, Count; Count Most e.0 for (int i 6.0; i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!