Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 functionimage text in transcribed. 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

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 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

Students also viewed these Databases questions

Question

T F A characteristic valued by U.S. persons is directness.

Answered: 1 week ago