In Class Exercise - Banking


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:

  1. Checking

  2. Savings.

General Conditions:

  1. Every customer must maintain a minimum balance.

  2. Minimum balance for savings is: $1,000 and minimum balance for checking is $500.

  3. If the balance falls below minimum balance, then there is a $10.00 service charge for savings accounts and $15.00 for checking accounts.

  4. If the balance at the end of the month is at least the minimum balance, each account receives the following interest:

    1. Savings accounts receive 4% interest.

    2. 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:

  1. Customer Account Number

  2. Type of Account (s or c)

  3. Current balance

Output:

  1. Customer Account Number

  2. Account Type

  3. Current Balance

  4. Message about Charges and Interest

  5. 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:

image from book

Open table as spreadsheet

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

image from book

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.




Intermediate Business Programming with C++
Intermediate Business Programming with C++
ISBN: 738453099
EAN: N/A
Year: 2007
Pages: 142

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net