implement tasks based on README

This commit is contained in:
2026-04-19 23:46:05 +03:30
parent 8ddd529c85
commit c04246c885
3 changed files with 36 additions and 0 deletions
+14
View File
@@ -3,6 +3,20 @@ package CourseRegistrationStarter;
public class Main {
public static void main(String[] args) {
// TODO:
Course BP = new Course("Basic Programming", "BP1404", 3);
Course AP = new Course("Advanced Programming", "AP1405", 2);
Course DS = new Course("Data Structure", "DS1406", 2);
Student saeedJam = new Student("Saeed Jamali", "404222000");
RegistrationSystem register = new RegistrationSystem();
register.addCourseToSystem(BP);
register.addCourseToSystem(AP);
register.addCourseToSystem(DS);
saeedJam.addCourse(AP);
saeedJam.addCourse(DS);
saeedJam.dropCourse(DS);
saeedJam.showRegisteredCourses();
// 1. Create at least 3 courses
// 2. Create 1 student
// 3. Create a registration system