(Business Accounting) CS Bank Limited updates its customers’ accounts at the end of each month. The bank offers two types of accounts: savings accounts (s) and checking accounts (c). Every customer must maintain a minimum balance. If a customer’s balance falls below the minimum balance, there is a service charge of RM10.00 for savings accounts and RM25.00 for checking accounts. The minimum balance for savings accounts and checking accounts is at least RM1000.00 and RM5000.00 respectively. If the balance at the end of the month is at least the minimum balance, the account receives interest as follows:
i. Savings accounts receive 4% dividend.
ii. Checking accounts with balances of up to RM5000 more than the minimum balance receive 3% dividend; otherwise the dividend receive is 5%.
Your program reads a customer’s account number (int), account type (char; s for savings, c for checking), and the current balance in the account (double or float). The program should then output the account number, account type, account name, account balance for the last month, amount of service charge (if any), amount of dividend received (if any), latest account balance, and an appropriate message.