Design a Customer class to handle a customer loyalty marketing campaign. After a
ID: 3713222 • Letter: D
Question
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 Example output: Bob spent $50, would he get the discount? False Amy spent $ 120, would she get the discount? TrueExplanation / Answer
Customer.py
Test.py
**Comment for any further queries.