1. Create a Windows Forms Application (.NET Framework). Give the solution a different name than the project

2. Add a Class Library (.NET Framework) Project to the Solution

3. Add the following Classes to the Class Library

  • Student.CS
    • string _firstName
    • string _lastName
    • string _studentld
    • Create a constructor to initialize the fields.
    • Create properties that provide access to the fields.
  • Instructor.CS
    • string _firstName
    • string _lastName
    • string _employeeld
    • Create a constructor to initialize the fields.
    • Create properties that provide access to the fields.
  • Course.CS
    • string _courseName
    • Instructor _instructor
    • List< Student > _enrolled
    • Create a constructor to initialize the _course Name and _instructor fields.
    • Do not take in a student list, assign the list to a new empty List in the constructor.
    • Create properties that provide access to the _courseName and _instructor fields (These cannot be changed)
    • Create a EnrollStudent(Student student) Method which adds a student to the List
    • Create a GetStudents() Method which returns the student List.

4. On load of the windows form create 4 Students and 2 Instructors.

5. Create 2 courses one for each Instructor and add students to the enrolled list.

6. In the UI Display the names of the courses, the instructor's name and the list of students enrolled in each course.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.