Question: Use C++ please Question 12 (2 parts) Write a complete program that contains and uses a function is by a user. Odd to find the
Question 12 (2 parts) Write a complete program that contains and uses a function is by a user. Odd to find the number of odd numbers entered Part A (function prototype/definition-20 points) Write a function isOdd0 that takes one parameter: 1. number, an integer The function returns true if number is odd and false otherwise Part B (Rest of the program-20 points) The program prompts the user for many numbers and calculates the total a number is odd or not. After calculating the total number of odds, the program prints to the if more than half of the numbers entered were odd and "Few" otherwise the amount of numbers to enter. It then repeatedly asks the user to enter that number of odds entered. The program must call isOdd to check whether screen "Too many" program would print: For example, if the user enters 10 numbers, 92, 89, 65, 84, 35, 54, 88, 99, 93, 89, the Question 12 (2 parts) Write a complete program that contains and uses a function is by a user. Odd to find the number of odd numbers entered Part A (function prototype/definition-20 points) Write a function isOdd0 that takes one parameter: 1. number, an integer The function returns true if number is odd and false otherwise Part B (Rest of the program-20 points) The program prompts the user for many numbers and calculates the total a number is odd or not. After calculating the total number of odds, the program prints to the if more than half of the numbers entered were odd and "Few" otherwise the amount of numbers to enter. It then repeatedly asks the user to enter that number of odds entered. The program must call isOdd to check whether screen "Too many" program would print: For example, if the user enters 10 numbers, 92, 89, 65, 84, 35, 54, 88, 99, 93, 89, the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
