You are required to declare the classes as below:
Account
-owner: Customer
-accountNo: int
-balance: double
+ Account()
+ Account(owner: Customer, accountNo: int, balance: double)
+setOwner(owner: Customer): void
+getOwner(): Customer
+setAccountNo(accountNo: int): void
+getAccountNo(): int
+setBalance(balance:double): void
+getBalance(): double
+deposit(amount:double):boolean
+withdraw(amount:double):boolean
Customer
-name : String
-icNo : String
+Customer()
+Customer(name: String, icNo: String)
+setName(name: String): void
+getName(): String
+setIC(icNo: String):void
+getIC():String
The following are the requirements needed:
1. Deposit method:
a. Do a checking on the amount given. Perform the update on current balance only if the amount is greater than zero. Return true if deposit is successful and false otherwise.
2. Withdraw method:
a. Do a checking on the amount given. Deduct from current balance only if the amount is less than the balance and the balance after deduction should not be less than RM10.00. Return true if withdrawal is successful and false otherwise.
Then create a Bank class that will instantiate an object of type Account and Customer. Request the user to enter the information for the newly created Customer object and Account object.
Your Bank class then should allow the following options:
1 – Deposit
2 – Withdraw
3 – Check Balance
0 – Exit
These options should be displayed repeatedly until the user enters 0. Once option 0 is chosen, display a “Thank you” message and terminate from the application.

