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 π 8. Update Profile: the user should be able to update their profile.
class User: def __init__(self, name, email, phone, address, password): self.name = name self.email = email self.phone = phone self.address = address self.password = password def update_profile(self, name, email, phone, address, password): self.name = name self.email = email self.phone = phone self.address = address self.password = password class Order: def __init__(self, order_id, user, menu_items, timestamp, status): self.order_id = order_id self.user = user self.menu_items = menu_items self.timestamp = timestamp self.status = status class MenuItem: def __init__(self, name, quantity, price, discount, stock): self.name = name self.quantity = quantity self.price = price self.discount = discount self.stock = stock def update