implement tasks based on README
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user