Fakultas Ilmu Komputer UI

Commit 8ce68e32 authored by hazlazuardi's avatar hazlazuardi
Browse files

Test ride assignment v1

parent d77ba3c9
Pipeline #81998 passed with stages
in 4 minutes and 25 seconds
it1,st,rpl,2020-01-01,true,st,ta it1,st,rpl,2020-01-01,true,ta,st
tes1,st,rpl,2021-06-23,true,ta,st
st,t1,rpl st,t1,rpl,adpro
...@@ -34,12 +34,16 @@ public class Student extends Role { ...@@ -34,12 +34,16 @@ public class Student extends Role {
@Override @Override
public void exclusiveActions() { public void exclusiveActions() {
System.out.println();
System.out.println("Timetable Management System");
System.out.println("6. Create a timetable"); System.out.println("6. Create a timetable");
System.out.println("7. See the list of timetable"); System.out.println("7. See the list of timetable");
System.out.println("8. Add Course to a timetable"); System.out.println("8. Add Course to a timetable");
System.out.println("9. Delete a Course in a timetable"); System.out.println("9. Delete a Course in a timetable");
System.out.println("10. Find a timetable"); System.out.println("10. Find a timetable");
System.out.println("11. Delete a timetable"); System.out.println("11. Delete a timetable");
System.out.println();
System.out.println("Assignment Management System");
System.out.println("12. Add an assignment"); System.out.println("12. Add an assignment");
System.out.println("13. See the list of assignments"); System.out.println("13. See the list of assignments");
System.out.println("14. Validate assignments"); System.out.println("14. Validate assignments");
...@@ -224,8 +228,8 @@ public class Student extends Role { ...@@ -224,8 +228,8 @@ public class Student extends Role {
try { try {
String timetableName = in.next(); String timetableName = in.next();
System.out.println(timetableList.getTimetable(timetableName, Main.currentUser).getTimetableName()); System.out.println(timetableList.getTimetable(timetableName, Main.currentUser).getTimetableName());
System.out.println("Courses: " + timetableList.getTimetable(timetableName, Main.currentUser).getCourses().toString()); System.out.println("- Courses: " + timetableList.getTimetable(timetableName, Main.currentUser).getCourses().toString());
System.out.println("Owner: " + timetableList.getTimetable(timetableName, Main.currentUser).getOwner().getUsername()); System.out.println("- Owner: " + timetableList.getTimetable(timetableName, Main.currentUser).getOwner().getUsername());
break; break;
} catch (NullPointerException e) { } catch (NullPointerException e) {
System.out.println("Timetable not found"); System.out.println("Timetable not found");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment