Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

n java, FX makes an application prototype that simulates the operation of an automatic teller machine (ATM)that requires the user to input an account number

n java, FX makes an application prototype that simulates the operation of an automatic teller machine (ATM)that requires the user to input an account number and a pin to access an account, and from there, they could either deposit, withdraw, or check their balance. The accounts are supposed to be saved so that you could run the program and access the account again to change the balance. Your application should include the following functions and features; also, you have to design Graphical User interfaces (GUIs)

1.1. Login: Before performing any transaction, the user must enter his or her name and on an input screen. Since the operation of this input screen should simulate the normal operation of an ATM, the PIN should not appear on the screen. In addition to the message which appears after every unsuccessful attempt, if after three tries, the PIN matching the name has not been entered, the application should display a message requesting the user to try using the ATM again later. The names and PINs of users must be validated using data contained in a text file called"Customers.txt"having the following structure:

name (String)

PIN (String -4 characters)

1.2.Main Form: Once access has been authorized, the main screen of the application should allow the user to carry out one of the following transactions:

Deposit Withdrawal

Transfer Bill payment

Below is the structure of the Accounts.txt sequential file in which account balances are stored:

Account type (1 character)

Pin (string -4 characters)

Account number (string -5 characters)

Account balance (single Decimal)

1.3.Deposit: For a deposit, the user must enter the amount and, if required, be able to select the account type to be credited. The checking account is the default for this transaction.

1.4.Withdrawal: For a withdrawal, the user must enter the amount and, if required, be able to select the account type to be debited. The checking account is the default for this transaction, subject to a maximum of $1,000. The ATM accepts only transactions for which the amount entered is a multiple of $10. There is no daily maximum amount (apart from the user's account balance).

1.5.Transfer: For a transfer, the user must enter the amount and the type of transfer (from checking to savings, or vice versa). This transaction is subject to a maximum of $100,000. The system must allow only a transfer from checking to savings or from savings to checking.

1.6.Bill Payment: For a bill payment, which is done from a checking account only, the user must enter the amount of the transaction. The checking account is debited by the same amount. In addition, a $1.25 fee is charged to the checking account. The maximum per transaction is $10,000.

2. General Rules

2.1 Chose Account: When a user performs an operation, the application should first ask if it should be done using a checking or savings account and then ask for the transaction amount.

2.2 Check Account Balance: The application must check the account balance before doing a transaction. Any transaction that would result in a negative balance must be rejected.

2.3 Update Account Balance: The balance of the account affected by a transaction should be updated and displayed after each transaction.

2.4 Multi transaction: The user should be able to make as many transactions as he or she would like to do before leaving the ATM.

2.5 No Money: A warning message should inform the user that the ATM can no longer carry out withdrawals when there is no money available. When a withdrawal transaction event occurs for an amount greater than the balance remaining in the ATM, the ATM should advise the user they can charge the transaction amount to the amount still available in the user's account.

2.6 Daily Refilled: When the application is initiated at the start of each day, the bank's balance money is automatically refilled with up to $5,000 for a maximum of $20,000.

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

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions