Question: Write a C++ program that prompts the user to enter the size of a one-dimensional array of type integer, the program then does the

 Write a C++ program that prompts the user to enter the size  

Write a C++ program that prompts the user to enter the size of a one-dimensional array of type integer, the program then does the following: Reads positive integers in the array Prints the array Calculates and prints the average of the array Prints numbers greater and less than or equal to the average Prints the greatest and the smallest numbers Prints even numbers Prints odd numbers Sample Input/Output: Enter the size of the Array. 10 Enter integer values for an Array of size 10 10 19 15 25 30 23 12 6 44 17 Array: 10 19 15 25 30 23 12 6 44 17 Average of the Array is 20.1 6 numbers are less or equal to 20.1 and 4 numbers are greater than 20.1 Greatest number is 44 and Smallest number is 6 Even numbers: 10 30 12 6 44 Odd numbers: 19 15 25 23 17

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer Heres a C program that implements the described functionality include include int main int si... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!