Macro Bank updates

Macro Bank updates its customer’s accounts at the end of each month. The bank offers two
types of accounts: savings and current. Every customer must maintain a minimum balance. If a
customer’s current balance falls below the minimum balance, there is a penalty of 7 OMR for savings
account and 12 OMR for current accounts. If the balance at the end of the month is at least the
minimum balance, the account receives interest as follows:
 ‘savings’ accounts receive 5% interest on current balance
 ‘current’ accounts with balances of up to 4000 OMR receive 2% interest on current balance;
otherwise the interest 6% on current balance.
Write and execute a C program using onlinegdp.com with descriptive comments explaining each line of
code:

  1. Reads an account number (int type), account type: s or S for savings, c or C for current, and
    minimum balance that the account number should maintain, and current balance (both of type
    float) of five customers. (5 marks for comments)
  2. The program must use switch-case construct for account types (Savings and Current). Each case
    will call relevant function, otherwise run the program again. (5 marks for comments)