Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Answer Heres a C program that implements the described functionality include include int main int si...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