Question: matlab program 3 Question 3: A bank contacts you, asking your help for designing a program for monitoring and categorizing customers accounts. They provide you
matlab program
3 Question 3: A bank contacts you, asking your help for designing a program for monitoring and categorizing customers accounts. They provide you with the following requirements: 1. An account is considered in the green category if credit-debit2000, where credit and debit are the amounts of the monthly credit and debit transactions, respectively, otherwise 2. The program must read the credit and debits amounts for n accounts and displays the 3. If either the entered credit or debit amount is negative, then the account should be ignored 4. the account is in the red category category for each account. and not processed. After entering all the accounts data the program should display the number of accounts in each category. Write a program that implements the bank requirements above. Note: The requirement 3, should be implemented using the statement continue. Sample input/output of the program (user input is in bold font) Enter the number of accounts: 4 Enter the credit amount: 9000 Enter the debit amount: 6000 Credit: 9000 Debit: 6000 Green Enter the credit amount: -7000 Enter the debit amount: 2000 Enter the credit amount: 6000 Enter the debit amount: 4000 Credit: 6000 Debit: 4000 Green Enter the credit amount: 7000 Enter the debit amount: 6900 Credit: 7000 Debit: 6900 Red Green accounts: 2 Red accounts: 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
