Question: *Python* Design a Customer class to handle a customer loyalty marketing campaign. After accumulating $100 in purchases, the customer receives a $10 discount on the
*Python*
Design a Customer class to handle a customer loyalty marketing campaign. After accumulating $100 in purchases, the customer receives a $10 discount on the next purchase.
Provide methods:
def makePurchase(self, amout)
def discountReached (self)
Provides a test program and test a scenario whether two individual customers receive the discount or not. If received the discount, return True; otherwise return False
Assuming a customer spent $50 and another one spent $120. Ensure to leverage your methods to test. Submit two files: 1: Customer class; 2: test file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
