Question: In C++ Create a class named Student that has three member variables: name numClasses - A string that stores the name of the student -
Create a class named Student that has three member variables: name numClasses - A string that stores the name of the student - An integer that tracks how many courses the student is currently enrolled in classList A dynamic array of strings used to store the names of the classes that the student is enrolled in Write appropriate constructor(s), mutator, and accessor member functions (setters and getters) for the class along with the following: A member function that inputs all values from the user, name and the list of class . names. A member function that outputs the student name and list of all courses. courses A destructor that releases all memory that has been allocated. .An overloaded assignment operator that correctly makes a new copy of the list of An overloaded copy constructor that correctly makes a new copy of the list of courses. Create a member function called dropCourse. Make it so that instead of deleting the course, it displays a W for the course name that was dropped. In main: Test your code with three student objects. Input and Output data for student 1 using your input and output member functions. Copy data from student 1 over to student 2 Output student 2 data. Create the third student and assign data from student 2 to student 3. Output data for student 3. Xtra credit: 2pts Create a member functions to delete. Use it in Main and output th new list
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
