Back to problems

Uber Eats Cart & Pricing Engine

Object-Oriented Programming · Uber · Medium

Requirements Customizable items — A product may carry any number of options, such as extra cheese, removing onions, or changing its size. Every option can change the item price by a positive amount, a negative amount, or zero. Composable pricing policies: Surge pricing — Apply a multiplier to the subtotal, such as 1.2x. Membership savings — For Uber One members, subtract a fixed percentage from the subtotal, such as 5%, and set the delivery charge to 0%. Promotions — Support…

Checking your access…