Question: Using Python Design a Customer class to handle a customer loyalty marketing campaign. After accumulating $100 in purchases, the customer receives a $10 discount on

Using Python Using Python Design a Customer class to handle a customer loyalty marketing

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? True

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!