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
Get step-by-step solutions from verified subject matter experts
