Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need this * ( a . Source code. b . Separate class specifications from implementation. c . Program output. d . Descriptive Tables. e
I need thisa Source code.
b Separate class specifications from implementation.
c Program output.
d Descriptive Tables.
e UML diagrams.Note that the classes bankAccount and in C for these problem. checkingAccount are abstract That is we cannot
instantiate objects of these classes. The other classes in Figure are not abstract
bankAccount: Every bank account has an account number, the name of the owner, and a
balance. Therefore, instance variables such as name, accountNumber, and balance should
be declared in the abstract class bankAccount. Some operations common to all types of
accounts are retrieve account owner's name, account number, and account balance; make
deposits; withdraw money; and create monthly statements. So include functions to
implement these operations. Some of these functions will be pure virtual.
checkingAccount: A checking account is a bank account. Therefore, it inherits all the
properties of a bank account. Because one of the objectives of a checking account is to be
able to write checks, include the pure virtual function writecheck to write a check.
serviceChargeChecking: A service charge checking account is a checking account.
Therefore, it inherits all the properties of a checking account. For simplicity, assume that this
type of account does not pay any interest, allows the account holder to write a limited
number of checks each month, and does not require any minimum balance. Include
appropriate named constants, instance variables, and functions in this class.
noServiceChargeChecking: A checking account with no monthly service charge is a
checking account. Therefore, it inherits all the properties of a checking account.
Furthermore, this type of account pays interest, allows the account holder to write checks,
and requires a minimum balance.
highlnterestChecking: A checking account with high interest is a checking account with no
monthly service charge. Therefore, it inherits all the properties of a no service charge
checking account. Furthermore, this type of account pays higher interest and requires a
higher minimum balance than the no service charge checking account.
savingsAccount: A savings account is a bank account. Therefore, it inherits all the
properties of a bank account. Furthermore, a savings account also pays interest.
highlnterestSavings: A highinterest savings account is a savings account. Therefore, it
inherits all the properties of a savings account. It also requires a minimum balance.
certificateOfDeposit: A certificate of deposit account is a bank account. Therefore, it
inherits all the properties of a bank account. In addition, it has instance variables to store the
number of CD maturity months, interest rate, and the current CD month. Write the definitions
of the classes described in this programming exercise and a program to test your classes.
Add a pointer to an object of each new class into the list of bankAccount pointers in the main. For each BankAccount, display the data of the type of account.
Implement your code's Constructors, Destructor, Copy Constructor, Mutators, and Accessor functions.
Overload operators in the classes.
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