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 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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started