*************** Each Customer has name, age, city, account, ArrayList of customers. Account is an abstract class that ha
Posted: Fri May 20, 2022 12:13 pm
***************
Each Customer has name, age, city, account, ArrayList of
customers.
Account is an abstract class that has contains:
The following attributes: Account number, password, balance and
ArrayList of Accounts
And the following methods: deposit (), withdraw (), checkBalance
(), getAccountTransactions ()
CheckingAccount is a subclass from the Account class and
contains:
Bank commission (4%) (عمولة البنك على عمليات السحب و
الايداع)
Transfer () method
SavingAccount is a subclass from the Account class and
contains:
Bank commission (2%)
Scenario:
At first, the system displays the Login screen:
Welcome
1-login
2-register
the system will display a screen for
the user to enter their information
(Name, city, age, password)
Then a screen will appear for the user
to choose the account type
After choosing the account type
A customer with an account will be
created
The Account number is a string of 10
characters, will be created randomly using digits (0-9)
As soon as you created the account
successfully a file named as the customer account number will be
created in the “customers files” folder
A login screen will be shown for the
user to enter account number and password
If the user information is correct
A list of option will appear,
Deposit: will take
the amount from the customer and add it to the total balance
(Taking into consideration commission fees)
Withdraw: will take
the amount from the customer and subtract it from the total balance
(Taking into consideration commission fees)
Transfer: will take
the amount the customer wants to transfer and the account number
the customer wants to transfer the amount to.
Add this amount to another account and
subtract it from the customer account.
Check balance: will
print the total balance in the customer’s account.
Print account
transactions: read the account file from the “customers
files” folder.
Important Notes:
For example, the balance cannot be a
negative value, so when you withdraw check if there is enough
amount in the account. If the balance is not enough you should
display a message to the user such as “This process cannot be
completed”.
Each Customer has name, age, city, account, ArrayList of
customers.
Account is an abstract class that has contains:
The following attributes: Account number, password, balance and
ArrayList of Accounts
And the following methods: deposit (), withdraw (), checkBalance
(), getAccountTransactions ()
CheckingAccount is a subclass from the Account class and
contains:
Bank commission (4%) (عمولة البنك على عمليات السحب و
الايداع)
Transfer () method
SavingAccount is a subclass from the Account class and
contains:
Bank commission (2%)
Scenario:
At first, the system displays the Login screen:
Welcome
1-login
2-register
the system will display a screen for
the user to enter their information
(Name, city, age, password)
Then a screen will appear for the user
to choose the account type
After choosing the account type
A customer with an account will be
created
The Account number is a string of 10
characters, will be created randomly using digits (0-9)
As soon as you created the account
successfully a file named as the customer account number will be
created in the “customers files” folder
A login screen will be shown for the
user to enter account number and password
If the user information is correct
A list of option will appear,
Deposit: will take
the amount from the customer and add it to the total balance
(Taking into consideration commission fees)
Withdraw: will take
the amount from the customer and subtract it from the total balance
(Taking into consideration commission fees)
Transfer: will take
the amount the customer wants to transfer and the account number
the customer wants to transfer the amount to.
Add this amount to another account and
subtract it from the customer account.
Check balance: will
print the total balance in the customer’s account.
Print account
transactions: read the account file from the “customers
files” folder.
Important Notes:
For example, the balance cannot be a
negative value, so when you withdraw check if there is enough
amount in the account. If the balance is not enough you should
display a message to the user such as “This process cannot be
completed”.