Question: how do i code the following for this problem in java: IAccount class and test (JUnit) AbstractAccount class and test (JUnit) SavingsAccount class and test

how do i code the following for this problem in java:
IAccount class and test (JUnit)
AbstractAccount class and test (JUnit)
SavingsAccount class and test (JUnit)
CheckingAccount class and test (JUnit)
 how do i code the following for this problem in java:
IAccount class and test (JUnit) AbstractAccount class and test (JUnit) SavingsAccount class
and test (JUnit) CheckingAccount class and test (JUnit) bank. There are two

bank. There are two types of accounts the bank wants you to implement: one called SavingsAccount and one called CheckingAccount. Your interface and all classes must be in the bank package. Both accounts can do the following: Create a new account by specifying a "starter" amount of money to open it with. The starter amount must be greater than or equal to one cent. Do this: Create a constructor that takes a single double representing the starter amount" for the account. Deposit into their account. Do this: Create a method that takes a single double representing the amount deposited into the account. If the amount specified is negative, throw an IllegalArgumentException Withdraw from their account. If the amount specified is greater than the balance available, this operation fails and returns false. Do this: Create a method withdraw that reduces the account balance by the amount specified. Return true if the transaction is successful, false otherwise . Check their balance. Create a method getBalance that returns a double (the current account balance) Non-customer behavior you must implement: Bank administrators can perform monthly maintenance to assess monthly fees and give a "clean slate" for the subsequent month. Do this: Create a perform Monthly Maintenance method to charge any fees and then reset transaction counters to zero. Do this: Create a toString method that prints the account balance in dollars/cents format (e.g: $10.00). You may want to look up the documentation for the String.format method for this part You are required to create an IAccount interface that both types of accounts implement, so that the bank can access either account through that common protocol. You will need to consider behavior variations as described below. Behavior variations for a Savings Account withdraw method (only 6 withdrawal transactions per month; unlimited deposits per month) Rules: If the amount specified is negative, the operation fails. If the number of withdrawals for the month is greater than 6, a transaction penalty of $14 is deducted from the account when monthly maintenance is performed Behavior variations for a Checking Account perform Monthly Maintenance method (minimum balance required: $100 to avoid fees) Rules: if the balance falls below $100 at ANY time during the month (before maintenance is performed) an account maintenance fee of $5 is charged when the monthly maintenance is performed

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To implement the bank account system in Java you can follow these steps Step 1 Create the IAccount Interface java package bank public interface IAccount void depositdouble amount boolean withdrawdoubl... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!