Question: using C++ Create a program that uses vectors to store and display student grades. The program should: Store student test scores in a vector of

using C++

Create a program that uses vectors to store and display student grades. The program should:

  1. Store student test scores in a vector of integers. The number of students should be input by the user and used to control inputting items into the vector.
  2. Use the push_back member function to add the initial grades to the vector.
  3. Display the results from the initial vector
  4. Use the push_back member function to add 2 new elements to the vector.
  5. Use a loop to display all of the student grades in the vector using the size member function.
  6. Create a function that determines and prints the average of the student scores after receiving the vector and the size of the vector as arguments.

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!