diff --git a/Project/OSTask1/src/CustomerManagerApp.java b/Project/OSTask1/src/CustomerManagerApp.java index 2a27245..1972e6c 100644 --- a/Project/OSTask1/src/CustomerManagerApp.java +++ b/Project/OSTask1/src/CustomerManagerApp.java @@ -22,15 +22,15 @@ public static void main(String[] args) { action = Console.getString("Enter a command: "); System.out.println(); - if (action.equalsIgnoreCase("list")) { + if (action.equalsIgnoreCase("1")) { displayAllCustomers(); - } else if (action.equalsIgnoreCase("add")) { + } else if (action.equalsIgnoreCase("2")) { addCustomer(); - } else if (action.equalsIgnoreCase("del") || action.equalsIgnoreCase("delete")) { + } else if (action.equalsIgnoreCase("3") || action.equalsIgnoreCase("delete")) { deleteCustomer(); - } else if (action.equalsIgnoreCase("help") || action.equalsIgnoreCase("menu")) { + } else if (action.equalsIgnoreCase("4") || action.equalsIgnoreCase("menu")) { displayMenu(); - } else if (action.equalsIgnoreCase("exit")) { + } else if (action.equalsIgnoreCase("5")) { System.out.println("Bye.\n"); } else { System.out.println("Error! Not a valid command.\n"); @@ -93,4 +93,4 @@ public static void deleteCustomer() { System.out.println("No customer matches that email.\n"); } } -} \ No newline at end of file +} diff --git a/sh.jpg b/sh.jpg new file mode 100644 index 0000000..f695dd0 Binary files /dev/null and b/sh.jpg differ diff --git a/student.md b/student.md new file mode 100644 index 0000000..2571ef9 --- /dev/null +++ b/student.md @@ -0,0 +1,5 @@ +**Shahenda Nagy Hamed Wafa** + +![alt text](figures/sh.jpg) + +***Section 3*** \ No newline at end of file