Test Information
Description
Instructions
Multiple Attempts Not allowed. This test can only be taken once.
Force Completion This test can be saved and resumed later.
Question Completion Status:
QUESTION 1
10 points Save Answer
Implement the following class in interface and implementation files. A separate file (the main project file) shall have the main function that exercises
this class.
Create a class named Student that has three member variables:
name - string that stores the name of the student
numClasses - integer that tracks how many courses the student is currently enrolled in, this number must be between 1 and 100.
classList - an array of strings of size 100 used to store the names of the classes that the student is enrolled in
Write the appropriate constructor(s), mutator and accessor functions for the class along with the following:
- a function that inputs all values from the user, including the list of class names
- a function that outputs the name and list of all courses
- a function that resets the number of classes to 0 and the classList to an empty list
Attach File
Browse My Computer
Browse Content Collection
Click Save and Submit to save and submit. Click Save All Answers to save all answers.