Question: C++ Write the function isEven() that receives an integer type parameter and returns a boolean type. The function returns true if the parameter is an

C++

Write the function isEven() that receives an integer type parameter and returns a boolean type. The function returns true if the parameter is an even integer and false otherwise. Test this function by writing code for parts (a) and (b) below

Write a main function in which the user is prompted to enter ten integer type numbers. Use an array to store the numbers. You must also use a loop to receive the ten numbers from the user.

After receiving the integers from the user in part (a), call the function isEven() on each integer in the array and display only the even integers. You must write a loop for this part.

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!