Write a console program to define vector


Problem:

Question- Write a C++ console program to do the following:

Part 1- Define an array of ints with the ten elements { 0, 1,2,3, 4, 5, 6, 7, 8, 9 }.

Part 2- Define a vector with those ten elements.

Part 3- Define a list with those ten elements.

Part 4- Define a second array, vector, and list, each initialized as a copy of the first array, vector, and list, respectively.

Part 5- Increase the value of each element in the array by 2; increase the value of each element in the vector by 3; increase the value of each element in the list, by 5.

Part 6- Print out a label and then the values of each of the containers.

Please show code with comments so I can follow what you are doing.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a console program to define vector
Reference No:- TGS0893414

Expected delivery within 24 Hours