Question: C++ Programming Problem: Describe a function that will prompt the user to enter 50 whole numbers and count how many even and odd numbers were

C++ Programming

Problem: Describe a function that will prompt the user to enter 50 whole numbers and count how many even and odd numbers were entered (0 should be considered an even number). The function should send back to the function call how many odd and even numbers were entered.

Your main function should be a driver program that will call the function, then output the values sent back to the function call.

Your function should prompt the user to enter the 50 numbers one at a time, determine how many are even and how many are odd (zero should be determined as even), and send back to the function call how many were even numbers and how many are odd numbers were entered.

Your function definition should occur after main.

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!