Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in java instructions Assignment 2 Complete Exercise E9.3 (checking account problem). What to turn in: A zip file containing ONLY 3 java source code.files (BankAccount.java,
in java
instructions
Assignment 2 Complete Exercise E9.3 (checking account problem). What to turn in: A zip file containing ONLY 3 java source code.files (BankAccount.java, BudgetCheckingAccount.java, and CheckingAccount.java). NO FOLDERS may be included in your zip file, or l will simply reject it. You are not giving me the AccountDemo.java file, because I have my own copy, and you are not permitted to modify it. Also, the package statement must be correct, as explained later in the assignment description. You have to do it a bit differently from the way described in the book. Create a new subclass named BudgetCheckingAccount that extends CheckingAccount, and override the withdrawal method to implement the penalty mentioned in the exercise specification. Also, prevent the actual withdrawal from creating a negative balance. (The penalty, on the other hand CAN create a negative balance.) YOU ARE NOT PERMITTED TO MODIFY THE CheckingAccount class. (Companies often sell you their code library without giving you access to the source code.) Of course, you will have to make appropriate changes to the startup class, named AccountDemo. DO NOT MODIFY IT, not even the package statemen! Right-click to download a ZIP file (named Asg 2 start.zip) containing the classes you need for this assignment. Make sure all our.java files have this statement on the first line package che9.exercises E93 This is your program's required output. Notice how the first overdraft has a penalty of $20, but the second and third overdrafts have penalties of $30 each. Account 1 balance - 5e0.0e Attempting to withdraw 50.00 from Account 1 Account 1 balance 450.00 Attempting to withdraw 40.00 from Account 1 Account 1 balance 410.00 Attempting to withdraw 500.00 from Account 1 Account 1 balance 390.0 Attempting to withdraw 391.00 from Account 1 Account 1 balance 369.00 Attempting to withdraw 370.00 from Account 1 Account 1 balance 338.00Step 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