Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please help me write this Java program. We are using the latest version of Java 8. Please post screenshots of your code and ouptut since
Please help me write this Java program. We are using the latest version of Java 8. Please post screenshots of your code and ouptut since it is easier to see the format that way. Thank You!
Write a Java application that meets the following requirements: Create three interfaces named Depositable, Withdrawable, and Balanceable that specify the methods that can be used to work with accounts. The Depositable interface should include this method: public void deposit(double amount) The Withdrawable interface should include this method: public void withdraw(double amount) The Balanceable interface should include these methods: public double getBalance() public void setBalance(double 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 that's initialized to the value that's 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 that's 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 nterest payment. Create a class named AccountApp that prompts the user to enter the initial values. Then, it asks for a transaction, posts the transaction, and displays the information on the con- sole output. Basically, it includes the main method) and creates necessary objects for the transactions. Your program should display the money amount properly with the dollar sign ($) and cent amounts (two digit after decimal sign). Also, your program should display the interest rate percentage properly
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started