Question: Project 9 - 2 : Account Balance Calculator Create a Java application that calculates and displays the starting and ending monthly balances for a checking
Project : Account Balance Calculator
Create a Java application that calculates and displays the starting and ending monthly balances for a checking account and a savings account.
Console
Welcome to the Account application
Starting Balances
Checking: $
Savings: $
Enter the transactions for the month
Withdrawal or deposit? wd: w
Checking or savings? cs: c
Amount?:
Continue? yn: y
Withdrawal or deposit? wd: d
Checking or savings? cs: s
Amount?:
Continue? yn: n
Monthly Payments and Fees
Checking fee: $
Savings interest payment: $
Final Balances
Checking: $
Savings: $
Project : Account Balance Calculator continued
Specifications
Create interfaces named Depositable, Withdrawable, and Balanceable that specify the methods that can be used to work with accounts. The Depositableinterface should include this method:void depositdouble amount
The Withdrawable interface should include this method:void withdrawdouble amount
And the Balanceable interface should include these methods:double getBalancevoid setBalancedouble amount
Create a class named Account that implements all three of these interfaces. This class should include an instance variable for the balance. Create a class named CheckingAccount that inherits the Account class. This class should include an instance variable for the monthly fee thats initialized to the value thats passed to the constructor. This class should also include methods that subtract the monthly fee from the account balance and return the monthly fee. Create a class named SavingsAccount that inherits the Account class. This class should include instance variables for the monthly interest rate and the monthly interest payment. The monthly interest rate should be initialized to the value thats passed to the constructor. The monthly interest payment should be calculated by a method that applies the payment to the account balance. This class should also include a method that returns the monthly interest payment.
Create a class named AccountBalanceApp that uses these objects to process and display deposits and withdrawals.
Use the Console class presented in chapter or an enhanced version of it to get and validate the users entries. Dont allow the user to withdraw more than the current balance of an account.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
