Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Bank Account Application 1. Specifications a. Create Java application that contains the specified interface, parent and child classes as per the class diagram. b. Chequing

Bank Account Application

1. Specifications

a. Create Java application that contains the specified interface, parent and child classes as per the class diagram.

b. Chequing account has the following business rules

i. Every 5 withdrawals, a transaction fee of $10 is applied to the account.

ii. Withdrawal count is only incremented upon successful withdrawals

iii. The account cannot be overdrawn. A console message will be displayed to state overdrawn error.

c. Saving account has the following business rules

i. Every 5 deposits, interest is applied on the balance of the account at a rate of 5%

ii. The account cannot be overdrawn. A console message will be displayed to state overdrawn error.

d. Within the main method do the following

i. Build a menu system that prompts the user to access Chequing Account or Savings Account

ii. When the user selects their account, prompt for the following

1. Deposit

2. Withdrawl

e. For the desired actions in each account, apply the above business rules

f. After each transaction, prompt the user with the main menu options and begin the workflow from the main menu choices

2. Test all cases to ensure you are applying the correct interest for savings and the correct transaction fees for chequing

3. Ensure the transaction and interest rate are read only constantsimage text in transcribed

Bank Account BankAccount +BankAccount(initialBalance number) # accountBalance : number ChequingAccount SavingsAccount + numberOfWithdrawals number +TRANSFEE number +numberOfDeposits number INTEREST number > BankAccount + withdrawalAmount(amount number) + depositAmount(amount number) +getBalance: number + printBalancestring

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions