Question: Need help with this coding problem also this needs to be written in Java. REQUIREMENTS 1) All bank accounts should have an accountid, name, and

Need help with this coding problem also this needs to be written in Java.
Need help with this coding problem also this needs to be written

REQUIREMENTS 1) All bank accounts should have an accountid, name, and balance. 2) A Checking account should have an additional attribute for overdraftProtection which should be type Boolean. This attribute determines whether a bank account has the overdraft protection feature enabled or not. 3) All bank accounts should prevent a deposit from happening if the amount being deposited is greater than or equal to $10,000. 4) When withdrawing from a checking account. The following constraints should be applied: i. If overdraft protection is enabled, and the withdrawal would result in a negative balance, do not allow the withdrawal to happen. ii. If overdraft protection is not enabled, and the withdrawal would result in a negative balance, allow the withdrawat to happen and deduct an extra $50 fee. 5) When withdrawing from a savings account, do not allow the withdrawal to happen if it would result in a negative batance. 6) When adding a new bank account to the system, prompt the user to enter the specific type of bank account along with the necessary data. 7) When displaying all the accounts to the console, include the type of account in the output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!