Specifications:
You work for a bank. The management has asked you to write a program to keep track of their accounts. The program is to satisfy the following conditions:
There are two types of accounts:
Checking
Savings.
General Conditions:
Every customer must maintain a minimum balance.
Minimum balance for savings is: $1,000 and minimum balance for checking is $500.
If the balance falls below minimum balance, then there is a $10.00 service charge for savings accounts and $15.00 for checking accounts.
If the balance at the end of the month is at least the minimum balance, each account receives the following interest:
Savings accounts receive 4% interest.
Checking accounts with balances of up to $5,000 more than the minimum balance will receive 3% interest, and otherwise they receive 5% interest.
Input:
Customer Account Number
Type of Account (s or c)
Current balance
Output:
Customer Account Number
Account Type
Current Balance
Message about Charges and Interest
Closing Balance
Note: Using the information above, create a sample input and a sample output screen.
Question: Is there sufficient sample data in the table below to test all of the program's conditions? If not, what should be added?
Sample data:
Account Number | Account Type | Account Balance |
---|---|---|
46728 | s | $2700.00 |
87324 | c | $7689.00 |
79873 | s | $800.00 |
89832 | c | $3000.00 |
98322 | c | $250.00 |
Design:
Note: Using the information above, try to create a structure chart and matching pseudo code. After you have done this, compare your documents with the pseudo code below:
pc_banking
Note: Take the pseudo code above and create a structure chart to match it.
Coding Phase:
Note: Once you have created both the pseudo code and the structure chart, use these two documents and write the C++ code which would match it.