Question: programming java AccountHolder can have multiple SavingAccount and CurrentAccount. SavingAccount has minimum account balance limit of RM20.00 while CurrentAccount has minimum account balance limit of

 programming java AccountHolder can have multiple SavingAccount and CurrentAccount. SavingAccount has

 programming java

minimum account balance limit of RM20.00 while CurrentAccount has minimum account balance

AccountHolder can have multiple SavingAccount and CurrentAccount. SavingAccount has minimum account balance limit of RM20.00 while CurrentAccount has minimum account balance limit of RM0.00. Both accounts having methods checkBalance, withdraw and deposit. BalanceNotSuffientException is new Exception class used within method withdraw to ensure Account Holder does not left balance less than the minimum limit. ATMCard able to access account holder's BankAccount in the same bank through auto-teller machine (ATM) by verifying the ATM card number and pin number whether they are match or not. BankAccounts having methods to instantiate list of ATMCard objects. Add an input validation in your program code and other appropriate exceptions. Below are classes that been used in this example: Account AccountHolder name icNumber address phone Number SavingAccount AccountHolder accountNumber type = "Saving" balance minLimit = 20.00 checkBalance () withdraw() deposit() CurrentAccount AccountHolder account Number type = "Current" balance minLimit = 0.00 checkBalance () withdraw() deposit() checkBalance () withdraw() deposit() ATMMachine BankAccount ATMCard AccountHolder atmNumber; ArrayListpinNumber; BankAccount; BankAccounts ArrayList HashMap main() BalanceNotSufficientException Below are example output: run: **Welcome To UTeM Auto Teller Machine** Enter ATM Card Number : 70012345678 Enter Pin Number : 12345 Welcome Ilham Bin Yusof Please choose bank account for transaction. [1] 8223179 Saving 10000.0 [2] 4388625 Saving 20000.0 [3] 7505295 Current 30000.0 Select account : 1 Please choose transaction. [1] Check Balance [2] Withdraw [3] Deposit [4] Change Account [5] Personal Details [6] Exit Select transaction

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!