From cfe28cd23132d2ec64928a6145744f109cba63bd Mon Sep 17 00:00:00 2001 From: Mahmoud Ahmed AbdElsalam <47575298+m9a9@users.noreply.github.com> Date: Thu, 26 Mar 2020 09:29:53 +0200 Subject: [PATCH 1/3] mahmoud ahmed --- Project/OSTask1/src/CustomerManagerApp.java | 22 ++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Project/OSTask1/src/CustomerManagerApp.java b/Project/OSTask1/src/CustomerManagerApp.java index 2a27245..2f9fc9d 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"); @@ -40,11 +40,11 @@ public static void main(String[] args) { public static void displayMenu() { System.out.println("COMMAND MENU"); - System.out.println("list - List all customers"); - System.out.println("add - Add a customer"); - System.out.println("del - Delete a customer"); - System.out.println("help - Show this menu"); - System.out.println("exit - Exit this application\n"); + System.out.println("1 - List all customers"); + System.out.println("2 - Add a customer"); + System.out.println("3 - Delete a customer"); + System.out.println("4 - Show this menu"); + System.out.println("5 - Exit this application\n"); } public static void displayAllCustomers() { @@ -93,4 +93,4 @@ public static void deleteCustomer() { System.out.println("No customer matches that email.\n"); } } -} \ No newline at end of file +} From a489f72abb1130428496381396f0747c35953ce8 Mon Sep 17 00:00:00 2001 From: Mahmoud Ahmed AbdElsalam <47575298+m9a9@users.noreply.github.com> Date: Thu, 26 Mar 2020 10:16:42 +0200 Subject: [PATCH 2/3] Create student.md --- student.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 student.md diff --git a/student.md b/student.md new file mode 100644 index 0000000..99614d9 --- /dev/null +++ b/student.md @@ -0,0 +1,3 @@ +![alt text](https://www.facebook.com/photo?fbid=2346426872124231&set=a.108698535897087) +**MahmoudAhmed Mohamed Abdelsalam** +**section 5** From 64aef0af5d50dade721c21808cd9d4a2abf3589e Mon Sep 17 00:00:00 2001 From: Mahmoud Ahmed AbdElsalam <47575298+m9a9@users.noreply.github.com> Date: Thu, 26 Mar 2020 10:20:37 +0200 Subject: [PATCH 3/3] Update student.md --- student.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/student.md b/student.md index 99614d9..9750dd1 100644 --- a/student.md +++ b/student.md @@ -1,3 +1,3 @@ ![alt text](https://www.facebook.com/photo?fbid=2346426872124231&set=a.108698535897087) -**MahmoudAhmed Mohamed Abdelsalam** +**Mahmoud Ahmed Mohamed Abdelsalam** **section 5**