Question: by basic java W Exercise 3 (2 points) Project Name: _LABO1_Bank Account . Write a JAVA class, called Person, that has five properties: name, surname,
by basic java
W Exercise 3 (2 points) Project Name: _LABO1_Bank Account . Write a JAVA class, called Person, that has five properties: name, surname, sex, occupation, and organization. This class has only one constructor that takes tive arguments for setting all parameters. It has only one method called printInfo(), and this method prints the following five lines. Name: [name] Surname: surname] Sex: [sex] Occupation: [occupation] Organization: (organization] . 29 Exercise 4 (2 points) Project Name: _LABO1_BankAccount Write a JAVA class, called BankAccount, that has tree properties: person, account Number, and balance. The property person is an object of the class Person. This class has one constructor that takes seven arguments: name, surname, sex, occupation, organization, account Number, and balance. The first five arguments are used to set the property person by creating a new object of Person (with the constructor in Problem 3). The other two arguments are used to set the properties account Number and balance, respectively. This class has five methods, as follows. 1 void deposit (double x): it updates the balance with respect to the new deposit X. 2. void withdraw(double x): it updates the balance with respect to the new withdrawval. 3. void printInfo(): it prints the following seven lines. Name: [name] Surname: (surname] Sex: [sex] o Occupation: [occupation] o Organization: (organization] Account Number: [account Number] Balance: [balance) 4. void printBalance(): it prints "Balance = balance] million USD" 5. double convertBalanceTOTHB(): it converts the balance from USD to THB and returns the amount in THB O o o o Exercise 5 (2 points) Project Name: _LAB01_Bank Account Write a JAVA class, called TestBankAccount, that test the person and the BankAccount. It has only the main method. In the main method, do the following. 1. Create an object of BankAcount with the following pieces of information: name = Wang, surname = Talu, sex = Male, occupation - Actor, organization = SIIT, account Number = 000-000-0000, and balance = 10. 2. Print information. 3. Change the name, surname, and sex to yours. Print information 5. Call the deposit method of the object you created in step 1 to deposit 15 million USD to the account. 6. Print an updated balance. 7. Call the withdraw method to withdraw 5 million USD from the account. 8. Print an updated balance. 9 Print the balance in THB. 4