(Bank Account Services)
You will use JavaFX to implement a GUI application to provide the bank services to users. You will provide a combo box to allow users to select a services from this following list.
Open Account
Open CD Account
Deposit
Withdraw
Check Balance
Close Account
[Open Account]
User will provide the initial deposit amount, the system will assign an Account number, create an Account and display the Annual Interest Rate.
[Open CD Account]
User will provide the initial deposit amount and the CD duration. The system will assign an Account number, create a CD Account, and display the CD Annual Interest Rate and the Mature Balance.
[Deposit]
Users will provide the account number and the deposit amount. The System will check if the Account exists and if it is an Account object, then make the deposit.
[Withdraw]
Users will provide the account number and the withdraw amount. The System will check if the Account exists and if it is an Account object, then make the transaction.
[Check Balance]
Users will provide the account number. The System will check if the Account exists, then display the current balance for an Account object, and display the mature balance for a CD Account object.
[Close Account]
Users will provide the account number. The System will check if the Account exists, display the current balance for an Account object, and display the mature balance for a CD Account object. Then ask the user to confirm the close account action.
[Extra Credit]
Add two subclasses, SavingAccount and CheckingAccount, inherited from the Account class. SavingAccount needs to maintain a minimum balance of $300, can’t withdraw more than three times in a month, and uses the static AnnualInterestRate declared in Account class; CheckingAccount doesn’t need to maintain a minimum balance, has no limitation on how many withdraws allowed in a month, and receives no interests (AnnualInterestRate = 0). Add radio buttons in “Open Account” page to allow users choose to open a SavingAccount or Checking Account, and perform the restrictions above.
Get your solution now
Buy now
Comments
Post a Comment