Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Please put everything together and if have .h or txt please also put it. i want a final draft. Assignment 3 - Bank Accounts

C++

Please put everything together and if have .h or txt please also put it. i want a final draft.

image text in transcribed

Assignment 3 - Bank Accounts Assignment 3 - Bank Accounts 2. add information about available funds 3. print all other information including account balance 1. add 70% of money to availableFunds 2. add 100% of money to accountBalance 3. [Why is this a requirement? When you deposit a check at a bank it is common 23:59 that only some of it becomes available to you immediately. In the real world you have to wait a certain amount of time until the full amount is available.] 1. check if funds available for withdraw - available funds must stay less than or For this assignment you may work on your own or in pairs. Part 5 (Bank class) is only equal to accountBalance required for people working in pairs. 1. available funds should start the same as initial deposit Part 1: BankAccount 1. private double field: availableFunds 2. override: printStatement 1. Create an abstract class BankAccount 3. override: depositMoney 1. private static field: maxAccountID 4. implement withdrawMoney 2. Private member fields: accountID, accountHolder (name), address, 5. create a constructor phoneNumber, email address 1. create getter for all of these Part 3: Savings 2. create setter for address, phoneNumber, email address 1. Create class SavingsAccount that is a subclass of BankAccount 3. protected member fields: double accountBalance 1. implement getter/setter 1. create getter 1. print that the type of account is Savings 4. public virtual method: printStatement 2. add information about interest rate 1. prints out all Bank account information in user-friendly manner 3. print other account information including balance 5. public virtual method: depositMoney 1. A savings account is supposed to be only for saving. This means sometimes 1. takes in parameter double amount there is a penalty (fee) for a withdrawal. 2. return type void 2. If the withdrawal is over $200, the penalty is 10% of the amount being 6. declare pure virtual method: withdrawMoney withdrawn. 1. takes in parameter double amount 3. The maximum withdrawal penalty is $50. 2. returns boolean on success or failure 1. default initial interest rate should be .01 7. Constructor: create at least one constructor that takes in name, phone, email, 1. private float interestRate initialDeopsit (double) 2. override: printStatement 1. accountID should be set to the next highest ID ( use maxAccountID variable) 3. implement withdrawMoney 2. set accountBalance to initialDeposit 4. create a constructor 8. optional extra constructor takes in other fields Part 2: Checking 1. Create class CheckingAccount that is a subclass of BankAccount Part 4: Testing - Required only for individuals 1. getter for available funds 1. Create a Bank.cpp file with a main method. Inside the main: 1. print that the type of account is Checking 1. Create a savings account and a checking account. 2. Print the statements for each account

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

More Books

Students also viewed these Databases questions

Question

understand the key issues concerning international assignments

Answered: 1 week ago