27 lines
831 B
Java
27 lines
831 B
Java
package CourseRegistrationStarter;
|
|
|
|
public class Main {
|
|
public static void main(String[] args) {
|
|
|
|
Course AdvancedProgramming = new Course("AdvancedProgramming", "AP1404", 2);
|
|
Course DataStructures = new Course("DataStructures", "DS2201", 1);
|
|
Course DatabaseSystems = new Course("DatabaseSystems", "DB3301", 3);
|
|
|
|
Student fateme = new Student("fateme", "404222000", 10);
|
|
|
|
RegistrationSystem A = new RegistrationSystem();
|
|
|
|
A.addCourseToSystem(AdvancedProgramming);
|
|
A.addCourseToSystem(DataStructures);
|
|
A.addCourseToSystem(DatabaseSystems);
|
|
|
|
fateme.addCourse(AdvancedProgramming);
|
|
fateme.addCourse(DataStructures);
|
|
fateme.addCourse(DatabaseSystems);
|
|
|
|
fateme.dropCourse(DataStructures);
|
|
|
|
fateme.showRegisteredCourses();
|
|
}
|
|
}
|