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

C++  C++ 3) a) Write a function called Count that takes as

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

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!