Language is C++.
Write a program that creates a vector of size called “totalelements” (read from the keyboard), populate values of 10, 20, 30, 40,…. totalelements 10, reverse the vector, and then print out the content of the vector. For example, if the totalelement read from the keyboard is 5. you will populate 10,20,30,40,50. It should print 50,40,30,20,10. If the totalelement read from the keyboard is 6, you will populate 10,20,30,40,50,60. It should print 60,50,40,30,20,10. Show transcribed image text Write a program that creates a vector of size called “totalelements” (read from the keyboard), populate values of 10, 20, 30, 40,…. totalelements 10, reverse the vector, and then print out the content of the vector. For example, if the totalelement read from the keyboard is 5. you will populate 10,20,30,40,50. It should print 50,40,30,20,10. If the totalelement read from the keyboard is 6, you will populate 10,20,30,40,50,60. It should print 60,50,40,30,20,10.
Expert Answer
Answer to Write a program that creates a vector of size called “totalelements” (read from the keyboard), populate values of 10, 20…