Question: Main Function: Declare and fill an array with 1000 random integers between 1 - 1000. You will pass the array into functions that will perform

Main Function: Declare and fill an array with 1000 random integers between 1 - 1000.

You will pass the array into functions that will perform operations on the array.

Function 1:

Create a function that will output all the integers in the array. (Make sure output is clearly formatted.

Function 2:

Create a Function that will sum and output all the odd numbers in the array.

Function 3:

Create a Function that will sum and output all the even numbers in the array.

Function 4:

Create a function that will allow the user to enter an integer value to search. Program will output if integer value is found and the location of the integer in the array. or The program will output value is not in array. (value is not in array should not be printed more than once.)

Function 5:

Create a function that will output the highest value in the array.

Function 6:

Create a function that will output the lowest value in the array.

Function 7:

Implement a Bubble Sort algorithm. Sort the elements in the array and output in descending order.

Explain how your bubble sort algorithm works in your own words below

Make sure you have a menu operating the program until user decides to exit.

Enter 1. Output all integer values

Enter 2. Sum all odd numbers

Enter 3. Sum all even numbers

Enter 4. Enter a search value

Enter 5: Output the Highest Number

Enter 6: Output the Lowest Number

Enter 7: Sort the items in the array and Output in Descending Order

Enter 8: Output First Number in the Array

Enter 9: Output Last Number in the Array

Enter 10: To Exit Program

Please be clear for your comments and post the correct code with execution window strictly following the guidelines given above. Please make it understandable to both User and Editor. It should be in C++ language. Thanks in advance.

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!