Question: this is c++ Lab 3: Inheritance and Composition Grading: Be sure to follow the Coding Standard Guidelines. You must properly indent and comment your code.

this is c++
Lab 3: Inheritance and Composition Grading: Be sure to follow the Coding Standard Guidelines. You must properly indent and comment your code. This program is worth 100 points. Grading rubric: Indent code and insert comments to document your program. [10 pts] Program must be implemented and run as instructed. [80 pts] Source file and executable are placed in a folder. The folder is zipped up into a file. The zipped file is submitted to Blackboard. [10 pts] 1. Define a class with the name CreditCard and the following members: Data Members: a. name: name of account holder b. credit Limit: limit of credit amount allowed c. creditBalance: balance charged on the account d. interestRate: annual interest rate on credit Balance. e. accountID: unique 3 digit account ID assigned to each CreditCard object. Use a static data member to generate this unique account ID for each CreditCard object created. f. count: A static data member to track the count of the number of Credit Card objects created. Member Functions g. void charge(double amount): function which applies charge on CreditCard. h. void payment(double amount): function which pays an amount towards the creditBalance. i. void calculateMonthlyInterest(): function which calculates the monthly interest and adds interest to the creditBalance. j. void displayCreditInfo(): function which displays the account holder name, accountID, chargeBalance, creditLimit, interest Rate and count of the number of Credit Card objects created. NOTE: All data members must be private and no pointers allowed. arch JDT c
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
