Answered step by step
Verified Expert Solution
Link Copied!

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 4 Lab Activities
This lab has been designed for you to practice the implementation and testing of member functions of a Student class. The 04_student project concains the following Student class in the "Studenth" file.
class student I
private:
string mase_;
string pronouns;
unsigned labs_[10];
public:
Student();
Student(const strings nase, const strings pronouns);
Jraccessor
string to_string() const;
Vrastator
void update. Lab(unsigned pos, unsigned grade);
void update_labs(const strings grades);
void update_labs(const unsigned grades[]);
i:
Here are more detalls about the private data members:
name_is to store the name for a student.
pronouns_is to store the gender pronouns for the student in the "subjective/objectlve/possessive" pronouns form. For example, "she/her/her", he/him/hls", "they/them/their"-
labs_is 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 0):
The default constructor is to set the nome_ and pronouns_ of a new Student object to "Unknown" and "they/them/their", respectively in addition, the constructor shall initialize the lab grades to 0 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
image text in transcribed

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

Practical Database Programming With Visual Basic.NET

Authors: Ying Bai

1st Edition

0521712351, 978-0521712354

More Books

Students also viewed these Databases questions