Write a c++ program for a bank in your town that updates its customers’ accounts at the end of each month. The bank offers two types of accounts: savings and cheque. Every customer must maintain a minimum balance. Minimum balances for the accounts are:  Savings : R 1000.00  Cheque: R 1500.00 If a customer’s balance falls below the minimum balance, there is a service charge of R50.00 for savings accounts and R100.00 for cheque accounts. If the balance at the end of the month is at least the minimum balance, the client receives interest as follows:  Savings accounts receive 4% interest on the balance.  Cheque accounts with balances of up to R 5000.00 more than the minimum balance receive 3% interest; otherwise, accounts with balances more than R 5000.00 more than the minimum balance receive 5% interest. Write a c++ program that requests the user to enter a customer’s account number (int type), account type (char type - S for savings, C for checking) and current balance. The updated balance must be displayed. The program should continue updating accounts until the value 999 is entered as an account number. The number of savings and cheque account updated determined and must be displayed – see example output. Note:  The minimum balance amount for savings and cheque accounts must be declared as constants.  The program must accept capital or small letters as account types.  The updated balance displayed must be formatted to two decimal places. Test data: 123 S 2700 878 C 7689 789 S 800 Example of Computer output: Updating bank accounts Enter your account number (999 to exit): 123 Enter account type (S for savings, C for cheque): s Enter your current balance: 2700 Updated balance: R 2808.00 Enter your account number (999 to exit): 878 Enter account type (S for savings, C for cheque): C Enter your current balance: 7689 Updated balance: R 8073.45 Enter your account number (999 to exit): 789 Enter account type (S for savings, C for cheque): s Enter your current balance: 800 Updated balance: R 750.00 Enter your account number (999 to exit): 999 Number of clients with savings accounts: 2 Number of clients with cheque accounts: 1

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Write a c++ program for a bank in your town that updates its customers’ accounts at the end of each month. The bank offers two types of accounts:
savings and cheque. Every customer must maintain a minimum balance.
Minimum balances for the accounts are:
 Savings : R 1000.00
 Cheque: R 1500.00
If a customer’s balance falls below the minimum balance, there is a service charge of R50.00 for savings accounts and
R100.00 for cheque accounts. If the balance at the end of the month is at least the minimum balance, the client
receives interest as follows:
 Savings accounts receive 4% interest on the balance.
 Cheque accounts with balances of up to R 5000.00 more than the minimum balance receive 3% interest;
otherwise, accounts with balances more than R 5000.00 more than the minimum balance receive 5% interest.
Write a c++ program that requests the user to enter a customer’s account number (int type), account type (char type - S for savings, C for checking) and current balance. The updated balance must be displayed.
The program should continue updating accounts until the value 999 is entered as an account number.
The number of savings and cheque account updated determined and must be displayed – see example output.
Note:
 The minimum balance amount for savings and cheque accounts must be declared as constants.
 The program must accept capital or small letters as account types.
 The updated balance displayed must be formatted to two decimal places.
Test data:
123 S 2700
878 C 7689
789 S 800

Example of Computer output:

Updating bank accounts


Enter your account number (999 to exit): 123
Enter account type (S for savings, C for cheque): s
Enter your current balance: 2700
Updated balance: R 2808.00


Enter your account number (999 to exit): 878
Enter account type (S for savings, C for cheque): C
Enter your current balance: 7689
Updated balance: R 8073.45


Enter your account number (999 to exit): 789
Enter account type (S for savings, C for cheque): s
Enter your current balance: 800
Updated balance: R 750.00


Enter your account number (999 to exit): 999


Number of clients with savings accounts: 2
Number of clients with cheque accounts: 1

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY