
The class contains:
§ An int data field named id for the account (default 0).
§ A double data field named balance for the account (default 0.0)
§ A double data field named annualInterestRate that stores the current interest rate (default 0.0)
§ A Date data field named dateCreated that stores the date when the account was created.
§ A no-arg constructor that creates a default account.
§ The accessor and mutator methods for id, balance, and annualInterestRate.
§ The accessor method for dateCreated.
§ A method named getMonthlyInterestRate() that returns the monthly interest rate.
§ A method named withdraw() that withdraws a specified amount from the account if the account has enough money in it. Otherwise, it prints a message saying â??Insufficient fundsâ??.
§ A method named deposit() that deposits a specified amount to the account. Must use the above class to do the following:
NEED to have an account ID of 1122, a balance of $20,000 and an annual interest rate of 4.5%. use the withdraw method to withdraw $2500, use the deposit method to deposit $3000 and print the balance, the monthly interest rate and the date when this account was created. Create a second account object with an account ID 1123, a balance of $100 and an annual interest rate of 2.25%.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.