Question: Correct input/output 4 Computational correctness Exercise #1: Operations on Array Write a C++ program that prompts the user to enter the size of a one-dimensional

 Correct input/output 4 Computational correctness Exercise #1: Operations on Array Write

Correct input/output 4 Computational correctness Exercise #1: Operations on Array 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: 1e 19 15 25 30 23 12 6 44 17 verage of the Array is 20.1 numbers are less or equal to 20.1 and 4 numbers are greater than 20.1 reatest number is 44 and Smallest number is 6 ven numbers: 10 30 12 6 44 dd numbers: 19 15 25 23 17

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!