Question: Write in C++ Code Goals: Practicing loop/repetition structures and functions Problem: Describe a function that will prompt the user to enter 50 whole numbers and
Write in C++ Code
Goals: Practicing loop/repetition structures and functions
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.
Do not use any concepts beyond Chapter 6 (e.g. arrays). Remember, your code should contain comments for each function other than main that states the purpose of the function, input to the function (both input from the function call and interactive input), output from the function (both information sent back to the function call and interactive output), and processing performed in the function.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
