Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This a follow of my previous question * the rest of the prompt * please answer only one with the whole answer. ### Step Two:

This a follow of my previous question * the rest of the prompt * please answer only one with the whole answer. ### Step Two: Implement the `CheckingAccount` class
A `CheckingAccount`"is-a"`BankAccount`, but it also has some additional rules:
| Override Method | Description |
|---------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| withdraw | If the balance falls below $0.00 but is still greater than -$100.00, a $10.00 overdraft fee is also charged against the account. |
|| A request to overdraw a checking account by $100.00 or more (before overdraft fee) fails and the balance remains the same. For example, if the current balance is -$89.00, and the amount to withdraw is $10.00, the resulting balance is -$99.00. The withdrawal is permitted since the new balance is greater than -$100.00. The $10.00 overdraft fee is then charged against the account, resulting in a final balance of -$109.00.A withdrawal of $11.00 in the same situation fails because the new balance would be -$100.00 which is equal to,*not greater than*, the lower limit of -$100.00.|
### Step Three: Implement the `SavingsAccount` class
A `SavingsAccount`"is-a"`BankAccount`, but it also has some additional rules:
| Override Method | Description |
|---------------|----------------------------------------------------------------------------------------------------------------------------------------|
| withdraw | If the remaining balance is less than $150.00 after a withdrawal is made, an additional $2.00 service charge is withdrawn from the account. |
|| If a withdrawal is requested that would result in a negative balance (including the service charge), the withdrawal fails and balance remains the same. No fees are incurred. |

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

Databases Illuminated

Authors: Catherine M Ricardo, Susan D Urban

3rd Edition

1284056945, 9781284056945

More Books

Students also viewed these Databases questions

Question

How did the rosetta stone end up st the britidh museum ?

Answered: 1 week ago

Question

=+3. Who are the brand's competitors?

Answered: 1 week ago

Question

11.7 Discuss competency-based pay.

Answered: 1 week ago