Consider the following code:public class Banker {private BankAccount[] accounts;public Banker(BankAccount[] theAccounts) {accounts = theAccounts;}public BankAccount[] updateOverDueAccounts() {try {for (BankAccount anAccount : accounts) {if (anAccount.getOverdueAmount() <= 250)="">=>anAccount.setOverdueFlag();}}}catch (Exception ex) {System.out.println ("Exception: " + ex.getMessage());}return accounts;}}Calculate the following metrics (IMPORTANT: show how each value was calculated):a- The Cyclomatic Complexity of the Banker constructor methodb- The Cyclomatic Complexity of the updateOverDueAccounts methodc- The WMPC (Weighted-methods-per-class) of the Banker classd- The CBO (Coupling-between-objects) of the Banker class.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here