Question
There are three type of Customer say Classic, Gold and Platinum. Each type get different discount depends of the purchase amount per below table. Create
There are three type of Customer say Classic, Gold and Platinum. Each type get different discount depends of the purchase amount per below table. Create a project which will start once and can do this calculation and number of times user want. Program will terminate once user press 0(Zero). Make use of Interface, most of the OOP concepts. One class should not have more than one responsibility. Project should be extensible. If new discount type is to introduce in future then existing core logic should not break/ not require to change
Purchase Classic(discount) Gold (discount) Platinum(discount) 1-10000 10% 20% 30 % 10001-20000 15 % 25% 35 % 20000 above 20 % 30 % 40%
Print 1. Discount 2. Final
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started