Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Spomenik Monument Database

Authors: Donald Niebyl, FUEL, Damon Murray, Stephen Sorrell

1st Edition

0995745536, 978-0995745537

More Books

Students also viewed these Databases questions

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago