Question: C++ 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,

 C++ Exercise #1: Operations on Array Write a C++ program thatC++

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 progranm 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 de 19 15 25 3e 23 12 6 44 17 rray: 18 19 15 25 30 23 12 6 44 17 verage of the Array is 20.1 numbers are less or equal to 28.1 and 4 numbers are greater than 20.1 Greatest number is 44 and Smallest number is 6 ven numbers: 18 30 12 6 44 d 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!