Could anyone please help me to solve this java programming /*** This class repre
ID: 3613313 • Letter: C
Question
Could anyone please help me to solve this java programming /*** This class represents a bank account* @author:*/class Account{// Instance Variables// Money in the bank account, in dollarsprivate double balance;// Full name of the person who owns the accountprivate String owner;// Constructor/*** Creates a new Account belonging to 'name'*/public Account(String name){owner = name;balance = 0;}// Instance Methods/*** Add 'amount' dollars into the account* If amount < 0, then nothing happens*/public void deposit(double amount){if (balance >= 0)balance = balance + amount;}/*** Deduct 'amount' dollars from the account* If amount < 0, then nothing happens* If there is not enough money in the account, then nothing happens*/public void withdraw(double amount){// EXERCISE 1a: WRITE YOUR CODE HERE}public double getBalance(){return balance;}// EXERCISE 1b: WRITE YOUR METHOD HERE} (1a) From the account class above ,
(1b) In a different Java file, write the AccountTester class, which uses the Account class. In the main method of the AccountTester class, do the following (in this order):· Make two Account objects – each belonging to 2 different people· Add some money (a different amount) into both accounts· Withdraw some money from one account· Get the names and amount of money in each account, using the accessor methods,and store these values into new variables that are declared in the main method· For each account, use the above variables to print out onto the screen the owner’sname and the amount of money in the account. Your output should look something like this:Jason has $10.0
/*** This class represents a bank account* @author:*/class Account{// Instance Variables// Money in the bank account, in dollarsprivate double balance;// Full name of the person who owns the accountprivate String owner;// Constructor/*** Creates a new Account belonging to 'name'*/public Account(String name){owner = name;balance = 0;}// Instance Methods/*** Add 'amount' dollars into the account* If amount < 0, then nothing happens*/public void deposit(double amount){if (balance >= 0)balance = balance + amount;}/*** Deduct 'amount' dollars from the account* If amount < 0, then nothing happens* If there is not enough money in the account, then nothing happens*/public void withdraw(double amount){// EXERCISE 1a: WRITE YOUR CODE HERE}public double getBalance(){return balance;}// EXERCISE 1b: WRITE YOUR METHOD HERE} (1a) From the account class above ,
(1b) In a different Java file, write the AccountTester class, which uses the Account class. In the main method of the AccountTester class, do the following (in this order):· Make two Account objects – each belonging to 2 different people· Add some money (a different amount) into both accounts· Withdraw some money from one account· Get the names and amount of money in each account, using the accessor methods,and store these values into new variables that are declared in the main method· For each account, use the above variables to print out onto the screen the owner’sname and the amount of money in the account. Your output should look something like this:Jason has $10.0