Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Week 4 Lab Activities This lab has been designed for you to practice the implementation and testing of member functions of a Student class. The
Week Lab Activities
This lab has been designed for you to practice the implementation and testing of member functions of a Student class. The student project concains the following Student class in the "Studenth" file.
class student I
private:
string mase;
string pronouns;
unsigned labs;
public:
Student;
Studentconst strings nase, const strings pronouns;
Jraccessor
string tostring const;
Vrastator
void update. Labunsigned pos, unsigned grade;
void updatelabsconst strings grades;
void updatelabsconst unsigned grades;
i:
Here are more detalls about the private data members:
nameis to store the name for a student.
pronounsis to store the gender pronouns for the student in the "subjectiveobjectlvepossessive pronouns form. For example, "sheherher hehimhls "theythemtheir
labsis to store the lab grades for a student.
You are asked to implement the member functions of the Student class in the "Student.qpp file and test them in the "main.cpp flie.
Here are more detalls about the expected behavior of the public member functions:
Student: : Student :
The default constructor is to set the nome and pronouns of a new Student object to "Unknown" and "theythemtheir respectively in addition, the constructor shall initialize the lab grades to for all ten lsbs
Student: Student const stringt name, const string pronouns:
This constructor takes a string parameter name that represents a student name and a string parameter pronouns that represents the student's preferred gender pronouns in the
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