PYTHON Implement the design of the UberEats class so that the following output is produced: [For simplicity, you can as
Posted: Fri Jul 08, 2022 6:38 am
PYTHONImplement the design of the UberEats class so that the followingoutput is produced:[For simplicity, you can assume that a customer will always orderexact 2 items]Driver Code
order1 = UberEats("Shakib", "01719658xxx", "Mohakhali")print("=========================")order1.add_items("Burger", "Coca Cola", 220, 50)print("=========================")print(order1.print_order_detail())print("=========================")order2 = UberEats ("Siam", "01719659xxx", "Uttara")print("=========================")order2.add_items("Pineapple", "Dairy Milk", 80, 70)print("=========================")print(order2.print_order_detail())
OUTPUT
Shakib, welcome to UberEats!==================================================User details: Name: Shakib, Phone:01719658xxx, Address: MohakhaliOrders: {'Burger': 220, 'Coca Cola': 50}Total Paid Amount: 270=========================Siam, welcome to UberEats!==================================================User details: Name: Siam, Phone:01719659xxx, Address: UttaraOrders: {'Pineapple': 80, 'Dairy Milk': 70}Total Paid Amount: 150
order1 = UberEats("Shakib", "01719658xxx", "Mohakhali")print("=========================")order1.add_items("Burger", "Coca Cola", 220, 50)print("=========================")print(order1.print_order_detail())print("=========================")order2 = UberEats ("Siam", "01719659xxx", "Uttara")print("=========================")order2.add_items("Pineapple", "Dairy Milk", 80, 70)print("=========================")print(order2.print_order_detail())
OUTPUT
Shakib, welcome to UberEats!==================================================User details: Name: Shakib, Phone:01719658xxx, Address: MohakhaliOrders: {'Burger': 220, 'Coca Cola': 50}Total Paid Amount: 270=========================Siam, welcome to UberEats!==================================================User details: Name: Siam, Phone:01719659xxx, Address: UttaraOrders: {'Pineapple': 80, 'Dairy Milk': 70}Total Paid Amount: 150