Laboratorium Computer Vision Politeknik Elektronika Negeri Surabaya PENS-ITS Class TestBanking // Demonstrate behavior of various account types // Test a standard Savings Account System.out.println( Retrieving the customer Jane Smith with her savings account. ); customer = bank.getCustomer(0); account = customer.getAccount(); // Perform some account transactions System.out.println( Withdraw 150.00: + account.withdraw(150.00)); System.out.println( Deposit 22.50: + account.deposit(22.50)); System.out.println( Withdraw 47.62: + account.withdraw(47.62)); System.out.println( Withdraw 400.00: + account.withdraw(400.00)); // Print out the final account balance System.out.println( Customer [ + customer.getLastName() + , + customer.getFirstName() + ] has a balance of + account.getBalance()); System.out.println(); // Test a Checking Account w/o overdraft protection System.out.println( Retrieving the customer Owen Bryant with his checking account with no overdraft protection. ); customer = bank.getCustomer(1); account = customer.getAccount(); // Perform some account transactions System.out.println( Withdraw 150.00: + account.withdraw(150.00)); System.out.println( Deposit 22.50: + account.deposit(22.50)); System.out.println( Withdraw 47.62: + account.withdraw(47.62)); System.out.println( Withdraw 400.00: + account.withdraw(400.00)); // Print out the final account balance System.out.println( Customer [ + customer.getLastName() + , + customer.getFirstName() + ] has a balance of + account.getBalance()); System.out.println();
{"Image DocumentName": "Class TestBankingSystem.out.println( Creating the customer Tim Soley. ); bank.addCustomer( Tim , Soley );", "Image ImageDescription": "customer = bank.getCustomer(2); System.out.println( Creating his Checking Account with a balance and in overdraft protection. ); customer.setAccount(new CheckingAccount(500.00, )); System.out.println( Creating the customer Maria Soley. ); bank.addCustomer( Maria , Soley ); customer = bank.getCustomer(3); System.out.println( Maria shares her Checking Account with her husband Tim. ); customer.setAccount(bank.getCustomer(2).getAccount()); System.out.println();", "Image XResolution": "37", "Image YResolution": "37", "Image ResolutionUnit": "Pixels/Centimeter", "Image Software": "SlidePlayer", "Image YCbCrPositioning": "Centered"}