Question: #include #include using namespace std; int main ( ) { int SIZE; / / number of elements to be stored in an array / /
#include
#include
using namespace std;
int main
int SIZE; number of elements to be stored in an array
Prompt the user for an array size
cout "Enter the size of an array:" endl;
cin SIZE;
int numsSIZE frequency;
int index ;
forint i ; i SIZE; i
TODO: Populate array with random numbers
cout
Numbers in the array are: ;
forint i ; i SIZE; i
cout numsi;
cout endl;
TODO: Determine the frequency of each number
TODO: Determine the index of the number with the highest frequency
cout "Number with highest frequency : numsindex occurred
frequencyindex times" endl;
return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
