Question: 6. QUESTION (11 Points) a. Write a program that will count the number of odd values and the number of even values in a collection

6. QUESTION (11 Points) a. Write a program that will count the number of odd values and the number of even values in a collection of N numbers. Get the value of N before scanning each value in the collection of N numbers. b. Modify your program to compute and display each of the following in a collection of N numbers: the sum of odd values, the sum of even values, the square of the sum of odd values, and the square of the sum of even values
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
