Files
WS-02-intro-to-oop-Saeed/src/CourseRegistrationStarter/Main.java
T

29 lines
1006 B
Java

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
// 4. Add courses to the system
// 5. Register the student in some courses
// 6. Drop one course
// 7. Print the final registered course list
}
}