Answered step by step
Verified Expert Solution
Link Copied!

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 following

image text in transcribed
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 1019 15 25 30 23 12 644 17 rray: 1? 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke

1st Edition

0130086509, 978-0130086501

More Books

Students also viewed these Databases questions

Question

Describe Generation

Answered: 1 week ago