Question: Write a C++ program that uses a function named countNum2s that takes as input an array of integers and an integer that specifies how many
Write a C++ program that uses a function named countNum2s that takes as input an array of integers and an integer that specifies how many entries are in the array. The function should return the number 2's in the array. The program also uses another function named countNum3s that takes as input an array of integers and an integer that specifies how many entries are in the array. The function should return the number 3's in the array. The maximum size of the array is 50. The program should also use a function to read data into the array and another function to print the content of the array. Your main program should call the functions in the following order: Read data Print array countNum2 countNum3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
