(Solved) : Exercise 1 Class Object Definition Define Class Student Following Attributes Name Char 100 Q32814520 . . .
Exercise 1: Class and objectdefinition
a) Define a class Student with thefollowing attributes:
Name : char[100]
Number : integer
Courses: Course[10]
b) Make each of the above attributesprivate and define for each attribute a pair of publicget-set-methods
c) Create a constructor-method foryour Student-class for initializing objects of theStudent-Class.
d) Create a class Course withfollowing attributes:
Id: integer
Instructor: char[100]
RoomNr: integer
e) Using the above two classes createa simple application that allows the assignment of students tocourses (using the Courses attribute of the class Student). Yourapplication should internally store a sequence of Student objectseither by using an array of by using a linked list.
f) Extend your application by a queryfunction that prints for a given course-Id the name and number ofall students who attend this course.
Expert Answer
Answer to Exercise 1 Class Object Definition Define Class Student Following Attributes Name Char 100 Q32814520 . . .
OR