Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

25. Implement all of the member functions of the Student class you declared for the previous question. Assume this is a different file named Student.cpp.

image text in transcribedimage text in transcribed

25. Implement all of the member functions of the Student class you declared for the previous question. Assume this is a different file named Student.cpp. Be sure to add any necessary includes. //Student.cpp file 24. Write the class interface (header) for a class named Student. A Student has a name and a total quiz score. Your Student class should have a constructor that just passes in a name (does not pass in any quiz scores) and another constructor that passes in a name and a single quiz score. Do not include a default constructor. You should also add member functions get name (), add quiz (int score), get total score (), and get average score () to the public interface. You may add any private member functions if you want, but do not add any other public member functions. The class will also need to store the number of quizzes in order to calculate the average score. DO NOT ADD THE IMPLEMENTATION HERE. Do not use inline functions (i.e., do not define the functions in the class declaration). You will lose points if you do. // Student.h file

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

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books

Students also viewed these Databases questions