Question
In C++: (Analyze input) Write a program that first reads an integer for the array size, then reads numbers into the array, counts the even
In C++: (Analyze input) Write a program that first reads an integer for the array size, then reads numbers into the array, counts the even numbers and the odd numbers and displays them.
(62 points) Work Programming Exercise 11.1 on page 449, using the new operator to create new memory. In addition to the requirements listed with the exercise:
Display the contents of the array, the average, and the number of values above the average.
Test the program using any values you pick for two cases:
array size = 4
array size = 8
Turn in a copy of the program as well as the output for the two test cases.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started