Question: In C++ please! Write a program that will count how many times the first value in array occurs in an array of 50 random integers.
In C++ please!
Write a program that will count how many times the first value in array occurs in an array of 50 random integers.
The program must contain the following:
a global constant for the size of the array, which is used for the declaration of the array and for all loops that process the array
one for loop that fills the array with random integers in the range 0 - 9 (inclusive)
one for loop to print out the contents of the array
one for loop to count how many times the first value in the array occurs
output of the result
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
