The Student class contains (1 point):
Two public properties (not public fields): StudentID (int) and StudentName (string).
Necessary constructors (The code on line 13, 16, 17, 25 of function Main below must work).
And other methods if you need.
The Course class contains:
• (0.5 point) Two public properties (not public fields): CourseID (int), Course Title (string), the private field (not public) has type Dictionary<Student, double>.
The Dictionary<Student, double> cover the list of students participating in the course and their GPA in this course.
(0.5 point) Necessary constructors (The code on line 14 of function Main below must work).
• (1 point) Two public method:
void AddStudent(Student p, double g) to add student [p] with GPA as [g] to the course.
Void RemoveStudent(int StudentID) to remove student has id that equal [StudentID] from the course.
Zoom
150%
Close