Shanil P.

asked • 09/05/20

Managing Customer Records in a Bank

Problem: Managing Customer Records in a Bank

A bank in your town updates its customers’ account at the end of each month. The bank offers two types of accounts: Savings and Checking. Every customer must maintain a minimum balance. If a customer’s balance falls below the minimum balance, there is a service charge of $10.00 for savings accounts and $25.00 for checking accounts (see table 2 for more details). If the balance at the end of the month is equal to or above the minimum balance, the account receives interest as follows:

• Savings accounts receive 4% interest on current balance.

• Checking accounts with current balances of up to $5000 receive 3% interest; otherwise the interest is 5%.

In both these cases, for interest to be awarded; current balance must be greater than or equal to the minimum balance. The maximum current balance in any account allowable by the bank is $9999.99

All customer records are recorded in a text file which is described below.

Input File:

Each customer record is identified by a fourteen (14) digit number. The first four numbers indicate the customer’s account number, the fifth the account type, numbers 6 through 8 the minimum balance (a whole number) that account should maintain, numbers 9 through 14 represents the current balance (made up of a whole number portion (numbers 9-12) and the decimal portion (numbers 13 and 14).

Whole number portion of Current bal Decimal portion of Current bal Acc Type XXXXTMMMCCCCDD Account # Min Bal

Account types have associated numeric values. This is indicated in the table below. The fee and interest schedule are also sh

A customer can have both a savings account and checking account. this case the customer will have two entries in the Customer

[If Customer does not accrue any interest or service charge, value displayed should be 0.00. “New Bal” is calculated as Cur B

Program Hints - 1: Algorithms A. You may use the following algorithm (all in main function) as a guide to develop your progra

a. Print account#. b. Match a/c type with the given table and print to the screen. C. Print minimum bal and current bal. d. C

Program Hints -2: Code The following function are given for you to use in your program: 1. Extract_XTMC – This function accep

For higher credit you are required to implement and use the following functions in your program. Function declarations are al

This function can then be called from steps 4.f. iv) and m.i. 1) in the above algorithm. 3. Calc_Service_Charge - This functi

Note: In all your program constructs you must write comments where necessary. Do not write comments for obvious code, but segments of code which seem complex. Also include your name, student id# and lab day/time, the C++ IDE, and its version# that you used to compile your program, as comments at the top of your program code.

Sample output: Here is sample output to the screen for Menu 1: Some Bank in Your Town Customer Database Report Account ID# A/


1 Expert Answer

By:

Patrick B. answered • 09/06/20

Tutor
4.7 (31)

Math and computer tutor/teacher

Shanil P.

where is the link?
Report

09/06/20

Shanil P.

hello sir can you please tell where is the link for the answer?
Report

09/06/20

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.