Answered step by step
Verified Expert Solution
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.
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
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