Bank Account Group
?
Object-Oriented Programming: Single Class
?
? C++ Code?
?
People’s Bank offers its customers, checking accounts. Checking accounts allow for deposits and withdrawals and earn interest at the end of the month. At the end of each month for each customer a clerk enters at the terminal, the customer’s account number, the annual interest rate for the account, the customer’s first name and last name, the initial balance, followed by a series of transactions for that customer. The transaction input includes the type of transaction (D for deposit and W for withdrawal), and the amount. People’s Bank charges $30 for overdraft of any amount on any account.?
?
People’s bank provides a monthly statement with the heading e.g. “Jane Doe? Monthly Statement??.? The first line of the body of the statement shows customer’s account number, the initial balance, and then a transaction sub-heading, followed by a list of all the transactions. The transactions are listed by number, by type, the amount and the balance at the end of each transaction (running balance) and a summary closing monthly balance at the end.? Design an application for the bank that produces the required statement for f People’s Bank customers using an object-oriented approach
?
?
## Deliverables
Introduction to C++ Programming
?
?
Object-Oriented Programming: Single Class
?
? C++ Code ??" Due December 14th, 2009
?
People’s Bank offers its customers, checking accounts. Checking accounts allow for deposits and withdrawals and earn interest at the end of the month. At the end of each month for each customer a clerk enters at the terminal, the customer’s account number, the annual interest rate for the account, the customer’s first name and last name, the initial balance, followed by a series of transactions for that customer. The transaction input includes the type of transaction (D for deposit and W for withdrawal), and the amount. People’s Bank charges $30 for overdraft of any amount on any account.?
?
People’s bank provides a monthly statement with the heading e.g. “Jane Doe? Monthly Statement??.? The first line of the body of the statement shows customer’s account number, the initial balance, and then a transaction sub-heading, followed by a list of all the transactions. The transactions are listed by number, by type, the amount and the balance at the end of each transaction (running balance) and a summary closing monthly balance at the end.? Design an application for the bank that produces the required statement for f People’s Bank customers using an object-oriented approach
?
?
(A)? Design the application using the object-oriented approach. Write the pseudocode or paper design
?
Object-Oriented Solution Methodology
Your application development should use an object-oriented design and should have the following:
Class Template (Header file ??" with extension? .h)
The class template should incorporate the following members or any others based on your design approach:
§A base class named checkingAccount;
§All Attributes (e.g. input variables) that? are necessary for the checkingAccount class, declared as private;
§A get method for each variable (e.g. getAmount( ) ) declared as public, that returns? the value of the variable (e.g. amount).
§A set method for each variable (e.g. setAmount( ) ) declared as public that sets or initializes the value of the variable (e.g. amount).? ? ? ? ? ? The set methods may be used in the constructor method.
§A Constructor method called checkingAccount() and declared as public, for instantiating (creating)? an object of the checkingAccount class.
§A method for calculating and updating the balance after each transaction (deposit or withdrawal).? It is your choice whether this method is public or private.? Please include a comment in your code about why you made the choice you decided on, when you declare the method.
?
Methods Implementation file- (Source file with extension .cpp)
This file should contain the definition of all the methods declared in the class template (remember to use the scope resolution).
?
An application or driver file- (Source file with extension? .cpp)
This file contains the main program and any other functions you deemed necessary such as a function to display each transaction and/or the summary output.? You may incorporate this function into the class template and not the application file if desired.? Remember the application file has access only to the class members declared as public.
?
(B)? ? Convert your pseudocode to C++ code.? Create two accounts for two different individuals and for each display the checking account statement as shown below.
?
Points will be given for solution that shows creativity in logic and coding approach
?
The output should be formatted as follows:
?
?
Account Owner: Jane Doe? ? ? ? ? ? ? Account No. : 23456? ? ? Starting Balance: $120,000.00
?
Transaction No.? ? ? ? ? ? ? ? ? ? ? Type? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Amount? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Balance
1? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Withdrawal? ? ? ? ? $20,000.00? ? ? ? ? $100,000.00
2? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Deposit? ? ? ? ? ? ? ? ? ? ? ? $5,000.00? ? ? ? ? ? ? $105,000.00
3? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Deposit? ? ? ? ? ? ? ? ? ? ? ? $1,000.00? ? ? ? ? ? ? ? $106,000.00
?
Closing Monthly Balance:? $106,000.00