C++ aSSIGNMENTS

You might also like

You are on page 1of 2

1.

Create a class Account with following data members : -AId -CustomerName -Age -Balance Add the following methods : -Default Constructor -Parameterized constructor -Virtual Display -Virtual Accept -Abstract Method CalculateBalance 2. Create a derived class from Account as SavingsAccount with data members as : - AverageBalance - Ineterest Hint : if AverageBalance <= 5000 then Interest is 10% of Balance Else Interest is 20% of Balance Add the following methods : - Default Constructor - Parameterized constructor - Override Display - Override Accept - Override CalculateBalance (Give the total balance based on interest) 3. Create a class CurrentAccount inherited from Account with following data members : - CreditAmount - MonthlyCharges

Hint : if CreditAmount <= 5000 then MonthlyCharges is 10% of Balance Else MonthlyCharges is 20% of Balance Add the following methods : - Default Constructor - Parameterized constructor - Override Display - Override Accept - Override CalculateBalance (Give the total balance based after deducting MonthlyCharges)

You might also like