From 07a9613cfccd4b0c1c01cc6fa13cb15f34631d7f Mon Sep 17 00:00:00 2001
From: Eman Mohammed <53052942+EmanAly16@users.noreply.github.com>
Date: Wed, 25 Mar 2020 17:04:06 +0200
Subject: [PATCH 1/2] Update CustomerManagerApp.java
---
Project/OSTask1/src/CustomerManagerApp.java | 23 ++++++++++-----------
1 file changed, 11 insertions(+), 12 deletions(-)
diff --git a/Project/OSTask1/src/CustomerManagerApp.java b/Project/OSTask1/src/CustomerManagerApp.java
index 2a27245..d9516c2 100644
--- a/Project/OSTask1/src/CustomerManagerApp.java
+++ b/Project/OSTask1/src/CustomerManagerApp.java
@@ -21,16 +21,15 @@ public static void main(String[] args) {
// get the input from the user
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")) {
deleteCustomer();
- } else if (action.equalsIgnoreCase("help") || action.equalsIgnoreCase("menu")) {
+ } else if (action.equalsIgnoreCase("4")) {
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 +39,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 +92,4 @@ public static void deleteCustomer() {
System.out.println("No customer matches that email.\n");
}
}
-}
\ No newline at end of file
+}
From cd25e12157e92730fc0a8806ed302e19108e30f2 Mon Sep 17 00:00:00 2001
From: Eman Mohammed <53052942+EmanAly16@users.noreply.github.com>
Date: Wed, 25 Mar 2020 17:24:21 +0200
Subject: [PATCH 2/2] 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..2037277
--- /dev/null
+++ b/student.md
@@ -0,0 +1,3 @@
+**Eman Mohammed Aly AbdAlfatah**
+[My photo](https://drive.google.com/open?id=1CSrWej6vmZBsnLUjupb2p-mJHRbxQfEk)
+**Sec 2**