Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(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

image text in transcribed

(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

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

Database Management Systems Designing And Building Business Applications

Authors: Gerald V. Post

1st Edition

0072898933, 978-0072898934

More Books

Students also viewed these Databases questions