4.Create a class Customer having following members- i) data members - name,points,amt,newamt ii) Use parameterized constructor to initialize name and amt, initial value for points should be 50. iii)Fuctions-displayBill()-that prints custormers details, bill amount, bill amount after discount and points collected iv)abstract function-calc()
Type of Customer -Silver Card Create a class SilverCustomer inheriting from Customer and implementing function calc(0 that calculates the discount and points to given on the following basis-
Bill Aount Points Discount <2000 +10 5% >2000&<5000 +20 10% >5000 +50 12% Create a Demo Class to test the above.