Home / Expert Answers / Computer Science / instructionsstep-1open-eclipse-in-the-ucertify-lab-environment-step-2open-the-courseproject-project-pa571

(Solved): InstructionsStep 1Open Eclipse In the uCertify lab environment.Step 2Open the courseProject Project ...



Instructions
Step 1
Open Eclipse In the uCertify lab environment.


Step 2
Open the courseProject Project from Phase 2 and ensure that all code from that phase is in the
appropriate classes.
Step 3


Create the following classes, data, and interface for the following specification:
1. Account.java
a. add abstract method withdrawal()
b. add abstract method deposit()
c. add abstract method balance()
2. CheckingAccount.java
a. Transaction date – Valid date
b. Transaction type – string DEP or WTH only
c. Transaction amount – double.
3. SavingsAccount.java
a. Transaction date – Valid date
b. Transaction type – string DEP or WTH only
c. Transaction amount – double
4. AccountInterface.java – Interface including abstract withdrawal(), deposit(), and
balance() methods
5. Implement the withdrawal(), deposit(), and balance() methods in the Checking
Account and Savings account subclasses.
6. The withdrawal() and deposit() methods for both classes work the same by either
subtracting from or adding to the Balance. Each CheckingAccount transaction has a
Service Fee of 50 cents and each SavingsAccount transaction has a Service Fee of 25
cents. If a checking account balance goes below zero a $30 fee is charged.
SavingsAccount balances cannot be negative so an atempt to withdraw more than the
balance should be denied with an error. Checking accounts have an Interest rate of 2%
and Savings accounts have an Interest rate of 5%.
7. Add a try/catch block in the BankAcctApp class for each of the Checking Account and
SavingsAccount class instance variables. These blocks must be in a while loop such that if
an exception occurs that the program continues to execute requiring the user to enter
valid data vs. aborting.


Step 4
Test your program by adding 2 customers. One customer should have a checking account and
the other customer a savings account. Ensure that an invalid value or format is input for at least
2 of the Checking Accounts and at least 2 of the SavingsAccount class data items in Step 3 when
an account is opened.
When an error occurs the appropriate catch block should output the appropriate error message
and require the user to re-enter data until it’s valid.


Step 5
After customers and accounts are created, perform the following scenario for the appropriate
customer and account. Be sure to apply the appropriate Service Charge for each transaction,
and Overdraft Fee if applicable. After each transaction below include the Customer ID, Account

Number, Account Type, Transac�on Date, Transac�on Type, Transac�on Amount, any fees or
charges, and Balance in a formated manner with appropriate headings.
1. Deposit $1000 into the checking account.
2. Withdraw $500 from the checking account.
3. Withdraw $501 from the checking account.
4. Deposit $500 into the checking account.
5. Add the interest earned to the checking account based on the rate
6. Deposit $1000 into the savings account.
7. Withdraw $500 from the savings account.
8. Withdraw $501 from the savings account.
9. Deposit $500 into the savings account.
10. Add the interest earned to the savings account based on the rate.




We have an Answer from Expert

View Expert Answer

Expert Answer





We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe