...
/Free Response Question: Design a Banking Application
Free Response Question: Design a Banking Application
In this exercise, you'll design a basic banking application.
We'll cover the following...
Background
A bank account is an arrangement made with a bank whereby one may deposit and withdraw money and, in some cases, be paid interest. Nowadays, people open bank accounts to save their money and get different services from banks. There are different types of accounts, e.g., a savings account, current account, etc.
In this challenge, you are required to make a banking application that currently supports a savings account but is flexible enough to add more accounts later in the future. The functional requirements are as follows:
-
The withdrawal method:
-
No amount more than $50,000 can be withdrawn at a time. If a user tries to withdraw more than $50,000, the machine should give the alert: Please enter the correct amount.
-
If there’s not enough money in the account, the machine should give the alert: Please enter the correct amount.
-
Only an amount not equal to $0 can be withdrawn. If a user tries to withdraw $0, the machine should give the alert: Please enter the correct amount.
-
If money is withdrawn successfully, the machine should display a message showing the current balance. For example, Withdrawal is successful. Your current balance is $XXXXX.
✏️ Note: The withdrawal method is the same for every type of account.
-
-
The deposit method:
-
No amount more than $100 can be ...
-