Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C++ program to do the following USING ARRAYS only NO hard coding (hard coding): int x[] ={ 1,-4 ,7, ... }; No random

Write a C++ program to do the followingUSING ARRAYS only

NO hard coding (hard coding): int x[] ={ 1,-4 ,7, ... };

No random entries

1) input 15 integers (input validation , all numbers must be between -10 and 50 inclusive. ( user must be prompted to enter the values, no random entries) use a while loop

2) find the largest number in the array.

3) Find the Smallest Number in the array

4) Find the average of the numbers in the array

5) Display the array elements in reverse order

6) Display negative numbers

7) Display the odd numbers

Note: when the program runs, prompt the user to select options 2 to7 (Use either if else or switch statements)

note the program should not end after every selection, the user must be presented with a choice to either quit or to select another option.

DO NOT USE METHODS OR FUNCTIONS

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 Processing

Authors: David M. Kroenke

12th Edition International Edition

1292023422, 978-1292023427

More Books

Students also viewed these Databases questions

Question

Define Management by exception

Answered: 1 week ago

Question

Explain the importance of staffing in business organisations

Answered: 1 week ago

Question

What are the types of forms of communication ?

Answered: 1 week ago