Question: sample output Problem 1: a. Define the class bankAccount to store a bank customer's account number and balance. Suppose that account number is of type

 sample output Problem 1: a. Define the class bankAccount to store
sample output
a bank customer's account number and balance. Suppose that account number is

Problem 1: a. Define the class bankAccount to store a bank customer's account number and balance. Suppose that account number is of type int, and balance is of type double. Your dass should, at least, provide the following operations, set the account number, retrieve the account number, retrieve the balance, deposit, and withdraw money, and print account information. Add appropriate constructors. b. Every bank offers a checking account. Derive the class checking Account from the class bankAccount (designed in part a). This class inherits members to store the account number and the balance from the base class. A customer with a checking account typically receives Interest, maintains a minimum balance, and pays service charges if the balance falls below the minimum balance. Add member variables to store this additional information. In addition to the operations inherited from the base class, this class should provide the following operations set interest rate, retrieve interest rate, set minimum balance, retrieve minimum balance, set service charges, retrieve service charges, post interest, verify if the balance is less than the minimum balance, write a check, withdraw (override the method of the base class), and print account information. Add appropriate constructors. c. Every bank offers a savings account. Derive the class savingsAccount from the class bankAccount (designed in part a). This class inherits members to store the account number and the balance from the base dass. A customer with a savings account typically receives interest, makes deposits, and withdraws money. In addition to the operations inherited from the base class, this class should provide the following operations: set interest rate, retrieve interest rate, post interest, withdraw (override the method of the base class), and print account information. Add appropriate constructors. d. Write a program to test your classes designed in parts bande. Sample Output: Interest Checking ACCT#: Interest Checking ACCT#: Savings ACTH: vis NOCH : 1000 1001 1002 100 Balance: $2680.ee Balance: $2860.00 Balance: $10706.00 Balance: 303, **After withdrawals *** Interest Checking ACCT#: Interest Checking ACCT#: Savings ACCT#: Savings ACCT#: 1000 Balance: $1830.00 1001 Balance: $2510.00 1002 Balance: $10586.00 1003 Balance: $273.92

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!