Menu

Need Help Following Problem Java Create Class Called Account Following Fields Number Name Q43788033

Need some help on the following problem in Java:

Create a class called Account with the following fields: number,name, balance, and interestRate. Add acessor methods to display thevalue of each field in this class. Create another class calledSavingsAccount that inherits from Account. Add three fields calledday, month, and year. Add overloaded constructors to initialize thefields. Add three methods called deposit, withdraw, andcomputeInterest to this class, which are declared as follows

public void deposit(BigDecimal amount);

public boolean withdraw(BigDecimal amount);

public BigDecimal computeInterest();

The computeInterest() method calculates the monthly interestusing the following formula:

Monthly Interest = balancexinterestRate divided by 12

Add at least two overloaded constructors to both SavingsAccountand Account. Create two instances of SavingsAccount in the mainmethod and determine the interest on a given balance at the end ofa year.

Expert Answer


Answer to Need some help on the following problem in Java: Create a class called Account with the following fields: number, name, …

OR