Lab Exercise For this lab you must write a complete class in C++. This will be a class named Bank Account. This class must have the following private variables: 1. Account Holder Name: string 2....

Lab Exercise For this lab you must write a complete class in C++. This will be a class named Bank Account. This class must have the following private variables: 1. Account Holder Name: string 2. Balance: double 3. Interest Rate: double this class must have the following public constructor: 1. Bank Account (name: string, balance: double, rate: double) this class must have the following public member functions: 1. Get Account Holder Name (): string a. returns the account holders name 2. Get Balance (): double a. returns the current balance 3. Get interest Rate (): double a. returns the current interest rate 4. Deposit (amount: double): void a. adds the amount to the balance 5. Withdraw (amount: double): void a. subtracts the amount from the balance 6. Apply interest (): void a. adds interest (balance * interest Rate) to the balance you must write the complete and correct BankAccount.h file that will contain the class declaration. You must write the complete and correct BankAccount.cpp file that will contain the implementation code. DESCRIPTION: This program simulates some of the functionality of a simple ATM. This lab project illustrates the following C++ concepts: 1. Writing Class declarations. 2. Implementing class member functions and constructors. 3. Declaring and using user defined objects.

May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here