Question: Java OOP 1.1. Login: Before performing any transaction, the user must enter his or her name and on an input screen. Since the operation of
Java OOP
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 users 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 $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 do 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 users account. 2.6 Daily Refilled: When the application is initiated at start of each day, the banks 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
Get step-by-step solutions from verified subject matter experts
