@@ -0,0 +1,1763 @@
+package main;%0Aimport javax.swing.*;%0A%0Apublic class WebOrders extends Orders%7B%0A%09%0A%09private int clientID = 0;%0A%0A%09// constructor%0A%09public WebOrders(int%5B%5D startOrderedDishes, int startNumberOfOrders, int startClientID)%0A%09   %7B%0A%09%09   super(startOrderedDishes, startNumberOfOrders);%0A%09%09   clientID = startClientID;%0A%0A%09   %7D%0A%0A%09// Add order for WebClient --%3E Name of WebClient%0A%09public void AddOrder(Menu ourMenu, WebUsers ourUsers)%7B%0A%09%09String input;%0A%09%09int dish;%0A%09%09%0A%09%09if (getNumberOfOrders()==0)%7B // in case no web order has been performed, no bill started%0A%09%09%09%09%0A%09%09%09ourUsers.ListWebUsers();%0A%09%09%09%0A%09%09%09do%7B%0A%09%09%09%09   input = JOptionPane.showInputDialog(%22For which web client do you want to add a new dish to his orders?(Type in the ID of the user!)%22);%0A%09%09%09%09   clientID = Integer.parseInt(input);%0A%09%09%09%7D%09while(clientID%3C0 %7C%7C clientID%3E=ourUsers.numberOfUsers);%0A%09%09%7D%0A%09%09%0A%09%09%0A%09%09do%7B%0A%09%09%09   input = JOptionPane.showInputDialog(%22Which dish do you want to add to the order?%5CnIntroduce only the number of the dish:%5Cn(In the menu there are %22+ ourMenu.getNumberOfDishes() + %22 dishes in the menu.)%22);%0A%09%09%09   dish = Integer.parseInt(input)-1;%0A%09%09%7D%09while(dish%3C0 %7C%7C dish%3E=ourMenu.getNumberOfDishes());%0A%0A%09%09orderedDishes%5BnumberOfOrders%5D = dish;%0A%09%09numberOfOrders++;%0A%09%7D%0A%09%0A%09%0A%09public void showWebOrders(Menu ourMenu,WebUsers ourUser)%7B%0A%09%09%0A%09%09ourUser.printUserDetails(clientID);%0A%09%09int%5B%5D orderedDishes = getOrderedDishes();%0A%09%09for(int i = 0; i %3C getNumberOfOrders(); i++)%7B%0A%09%09%09%0A%09%09%09System.out.println(ourMenu.getDishName(orderedDishes%5Bi%5D));%0A%09%09%09%0A%09%09%7D%0A%09%7D%0A%09%0A%09public void cancelOrders(Menu ourMenu)%7B%0A%09%09%0A%09%09int input = JOptionPane.showConfirmDialog(null, %22Do you want to delete all the orders?%22);%0A%0A%09%09if(input==0) %7B%0A%09%09%09for(int i=0;i%3CnumberOfOrders;i++)%7B%0A%09%09%09%09orderedDishes%5Bi%5D=0;%0A%09%09%09%7D%0A%09%09%09numberOfOrders=0;%0A%09%09%09clientID=0;%0A%09%09%09%0A%09%09%7D%0A%09%09%09%0A%0A%0A%09%7D%0A%0A%7D%0A

Create WebOrders.java