Quiz 1
Quiz 1
1. Course Class
Attributes:
o courseName (string)
o courseCode (string)
o credits (int)
Requirements:
Constructors:
1. Default constructor.
2. Parameterized constructor to initialize all attributes.
Setters and Getters for all attributes.
2. Student Class
Attributes:
o name (string)
o studentID (string)
o courses (array of Course objects of size 10)
Requirements:
Constructors:
1. Default constructor.
2. Parameterized constructor to initialize name and studentID.
Hint: before adding course to array, first check if there is a place to add it , and also check if sent
course already in the array of not , you can compare strings using compare method in string.h
header or using ==
Example Scenario: