PYTHON Implement the design of the UberEats class so that the following output is produced: [For simplicity, you can as

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

PYTHON Implement the design of the UberEats class so that the following output is produced: [For simplicity, you can as

Post by answerhappygod »

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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply