Question: (C++) I am having trouble solving the problem above. Below is my main.cpp code. I need to submit a main.cpp, student.h, and student.cpp. Additionally we

 (C++) I am having trouble solving the problem above. Below is

(C++) I am having trouble solving the problem above. Below is my main.cpp code. I need to submit a main.cpp, student.h, and student.cpp. Additionally we must use a vector list to store all of the quiz scores.

#include #include #include "Student.h"

using namespace std;

/* * */

int main(int argc, char** argv) {

// create a student object and add a few scores to the student // Enter a score cout > name; cout =0) { cout > score; cout 0) { s1.addQuiz(score); } } cout Implement a class Student. A student has a name, and a list of scores (double). Supply the appropriate constructors and methods as follow: Student (); Student (string name); void SetName (string name); string GetName () const; void addQuiz (int score); double getTotalScore (); double getAverageScore (); Ask the user for the name and the scores. Enter -1 to stop entering

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!