Question: 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

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!