Question: CSC234 Advanced C++ Lab 3: Inheritance and Composition 2. Define the derived classes Premium Card and Business Card from class Credit Card with the following


CSC234 Advanced C++ Lab 3: Inheritance and Composition 2. Define the derived classes Premium Card and Business Card from class Credit Card with the following annual interest rates and credit card charge limits: const double DEFAULT_INTEREST_RATE_PREMIUM = 0.12; const double DEFAULT_INTEREST_RATE_BUSINESS = 0.10; const double PREMIUM_CHARGE_LIMIT = 2000.00; const double BUSINESS_CHARGE_LIMIT = 5000.00; If the chargeBalance of the Premium Card or Business Card object exceeds the credit card limit then the following fees will be charged: const double DEFAULT_FEE_PREMIUM = 150.0; //PremiumCard Fee const double DEFAULT_FEE_BUSINESS = 50.0; //BusinessCard Fee A. Use the following driver to validate your program: #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
