Question: Using Java code Write an error-free Java program to do the following things. Develop a class called Account that has only private data members. The
Write an error-free Java program to do the following things. Develop a class called Account that has only private data members. The data members should be the account balance, name on the account and any other data members that you require There should be a savings account class that inherits from Account. A savings account has an interest rate (it earns interest!), a minimum monthly balance. There should be checking account class that inherits from Account. The checking account does not pay interest but there is a fee for each withdrawal To test the class(es) write a main program. In the main program, the following events happen: o Set the minimum monthly balance in savings account to $500, the interest rate to 2% (added at the end of each month) and the penalty for falling below the min balance to $25. Set the withdrawal fee for checking account to $1 a saving account with a deposit of o Ms. Smith opens o Mr. Jones just opens a savings account with a deposit o Jimmy just opens a checking account with a deposit o Mr. Jones withdraws $460 to buy his son, Jimmy, a o Jimmy deposits his lawn mowing money of $75 and $1000 (use a constructor). of S2000 (use a constructor). of S150 (use a constructor) gaming console then spends $45 on computer game using his debit card which withdraws the money from t account. he checking o Ms. Smith withdraws S625 from savings to pay a car repair bill. o Display the end of month balances for each account. Overload the toString method to display the account totals
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
