Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Project/OSTask1/src/CustomerManagerApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -93,4 +93,4 @@ public static void deleteCustomer() {
System.out.println("No customer matches that email.\n");
}
}
}
}
Binary file added sh.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions student.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**Shahenda Nagy Hamed Wafa**

![alt text](figures/sh.jpg)

***Section 3***