Question: 2. Using vector; a. declare an integer vector b. ask user how many elements he/she wants to enter and populate the vector for that amount

 2. Using vector; a. declare an integer vector b. ask user

2. Using vector; a. declare an integer vector b. ask user how many elements he/she wants to enter and populate the vector for that amount of values. c. ask user to enter another integer variable. d. search the vector using foreach loop and inform the user if the entered value is in the vector or not

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!