Answered step by step
Verified Expert Solution
Question
1 Approved Answer
We are using c++. So we need a c program QUESTION 3 A bank in your town updates its customers' accounts at the end of
We are using c++. So we need a c program
QUESTION 3 A bank in your town updates its customers' accounts at the end of each month. The bank offers two types of accounts: savings and checking. Every customer must maintain a minimum balance of RM300. If a customer's balance falls below that minimum balance, there is a service charge of RM10.00 for saving accounts and RM25.00 for checking accounts. If the balance at the end of the month is at least the minimum balance, the account receives interest as follows :- 1. saving accounts receive 4% interest 2. checking accounts with balance of up to RM5000 will receive 3% interest; otherwise, the interest is 5% if the balance is greater than RM5000. Write a program that reads a customer's account number, account type (S or s for Saving, Corc for checking account), and the current balance. The program should then output the account number, account type, the current balance and the new balance after the service charge or interest. These processes will be repeated until the user enters 'Y' to exit from the program. Test your program using the following data :- New balance Customer number 1 2 3 4 5 Account type S Current balance 200 100 600 7000 3000 190 75 624 7350 3090
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started