Question: C++ 3) a) Write a function called Count that takes as parameters an integer array al, and integer num, and returns the number of times
3) a) Write a function called Count that takes as parameters an integer array al, and integer num, and returns the number of times num appears in the array a. You should assume that there is a -1 at the end of the array b) Use your function Count above to write a function called IsMember that takes as parameters an integer array sI (assumed to be terminated by -1) and an integer x and returns true (i.c. 1) ifx appears anywhere in the array. Write a main program to test the function Count using a user defined array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
