Question: C++ Write a program to fill a vector with 5000 random numbers. Then display: The smallest number The largest number The number of odd values

C++

Write a program to fill a vector with 5000 random numbers. Then display:

The smallest number

The largest number

The number of odd values

The number of even values

The total of the values

The average of the values

Ask the user for an integer and display the subscript of the cell where it was found or NOT FOUND! if it isnt found.

There is a under Materials in this weeks module. Download and unzip the shellSort and swapper functionC++ Write a program to fill a vector with 5000 random numbers.. Since you will be using a binary search, the vector will have to be in order.

Each of the preceding values should be determined by a function and returned to main where they should be displayed.

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!