1
answer
0
watching
73
views

An automatic teller machine (ATM) is used by the customers of a bank. Each customer has an account number, a customer name and a personal identification number (PIN); account number and PIN are required to gain access to the account. In a real ATM, the account number would be recorded on the magnetic strip of the ATM card. In this simulation, the customer will need to type it in. With the ATM, customers can log in to their account and make transactions. This process is repeated until the customer chooses to exit. The transactions can be made under the account as follows: 1. Check balance – This is to allow customer to check balance amount in the account. 2. Deposit amount – This is to allow customer deposit amount into his/her account. Ask user for deposit amount; new balance should be updated in the account. 3. Withdraw amount – This is to allow customer withdraw amount from his/her account. Ask user for withdrawal amount; new balance should be updated in the account. You are required to make sure the customer has sufficient balance for withdrawer. 4. Transfer amount (to other customer) – This is to allow customer transfer amount to other customers. Ask user for account numbers of transferee and transfer amount. Then search for the customer records using the input number; new balance should be updated in both accounts (transferor and transferee) if the transferee record is found. If the transferee record is not found, display error message. 5. Check history – This is to allow customer to check history of transactions. Display the list of transactions forward according to transaction date. Each display should contain an appropriate heading and column captions. Note that this is an advance question. You are required to modify the structure definitions from array of structures to nested arrays of structures for this task. Make sure the first four processes (check balance, deposit amount, withdraw amount and transfer amount) work well before attempting this question. Your final mark will be affected if you fail to implement the first four processes when attempting to implement this process (check Write an application in C++ to process customer transactions. Because this is a simulation, the ATM does not actually communicate with a bank. It simply loads a set of account numbers, PINs and balance amounts from a text file. Gather data on at least 5 customer records and prepare them in the text file(s). As each customer record is read, insert it into a list by using an array of structures. After building the list (array of structures), display a menu allowing customer to make transactions. When user chooses to exit the application, the program will write the updated data in the list (array of structures) to the text file. Prepare the necessary data file(s) for building the data structure(s) needed in your application. You may give additional assumptions for your application. To make your program more robust and avoid problems at run time, do as much status/error checking as you can in your program. You may also add more features and/or record more details of customers in your program for enhancement.

For unlimited access to Homework Help, a Homework+ subscription is required.

Unlock all answers

Get 1 free homework help answer.
Already have an account? Log in

Weekly leaderboard

Start filling in the gaps now
Log in