You have to design a Food Ordering app for a restaurant The application will have a log-in for admin and users to log-in -------------------------------- Admin ---------------------------------- β‘οΈ Admin will have the following functionalities: β¬ οΈ π 1. Add new food items. Food Item will have the following details: π΄ FoodID //It should be generated automatically by the application. π΄ Name π΄ Quantity. For eg, 100ml, 250gm, 4pieces etc π΄ Price π΄ Discount π΄ Stock. Amount left in stock in the restaurant. π 2. Edit food items using FoodID. π 3. View the list of all food items. π 4. Remove a food item from the menu using FoodID. --------------------------------- User ---------------------------------- β‘οΈ The user will have the following functionalities: β¬ οΈ π 1. Register on the application. Following to be entered for registration: π΄ Full Name π΄ Phone Number π΄ Email π΄ Address π΄ Password π 2. Log in to the application π 3. The user will see 3 options: π΄ Place New Order π΄ Order History π΄ Update Profile π 4. Place New Order: The user can place a new order at the restaurant. π΅ Show list of food. The list item should as follows: π΄ Tandoori Chicken (4 pieces) [INR 240] π΄ Vegan Burger (1 Piece) [INR 320] π΄ Truffle Cake (500gm) [INR 900] π 5. Users should be able to select food by entering an array of numbers. For example, if the user wants to order Vegan Burger and Truffle Cake they should enter [2, 3] π 6. Once the items are selected user should see the list of all the items selected. The user will also get an option to place an order. π 7. Order History should show a list of all the previous orders
class FoodItem: def __init__(self, food_id, name, quantity, price, discount, stock): self.food_id = food_id self.name = name self.quantity = quantity self.price = price self.discount = discount self.stock = stock def __repr__(self): return "{}-{}".format(self.food_id, self.name) def __str__(self): return "{}-{}".format(self.food_id, self.name) food_list = [ FoodItem(1, 'vegan burger', '1 piece', 320, 0, True), FoodItem(2, 'chicken burger', '1 piece', 180, 0, True), FoodItem(3, 'truffle cake', '500gm', 900, 0, True), FoodItem(4, 'chicken tandoori', '4 pieces', 240, 0, True) ] def show_menu(