Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

check this url : http://cs.uky.edu/~kwjoiner/cs215/projects/proj2/proj2.pdf for full question should be in c++ http://cs.uky.edu/~kwjoiner/cs215/projects/proj2/proj2.pdf You are to implement an Automatic Teller Machine (ATM) for a small

check this url : http://cs.uky.edu/~kwjoiner/cs215/projects/proj2/proj2.pdf

for full question

should be in c++

http://cs.uky.edu/~kwjoiner/cs215/projects/proj2/proj2.pdf

You are to implement an Automatic Teller Machine (ATM) for a small bank. Each day, the machine is started up by the banks IT support. At this time, the ATM reads a list of current accounts, Personal Id Numbers (PINs), and account balances from a file. Once started, customers use the ATM to make deposits, withdrawals and balance inquiries. For each customer, the ATM asks for and validates the account number and PIN number, then performs the deposit/withdrawal/balance-inquiry for the customer. For each successful withdrawal and deposit, the ATM maintains a list of transactions, including account number and amount for each, and updates the accounts current balance. The ATM is limited to a maximum number of total withdrawal/deposit transactions it can process per day, and will refuse to do deposits and withdrawals once this limit is surpassed. At the end of the day, IT support enters a secret account number and PIN (10000 and 1000). Once entered, the ATM shuts down, writing the list of transactions to a file. About the data: - Account Numbers are length 12 or less, made up of any characters, but no white space. - PINs are integers of four digits. - Balances are assumed to not exceed $ 99999.99 Detailed Description: Start Up: - The logo is displayed, and a startup message printed. - The account file is read in. When there is an error reading the file, an error message is printed and the shutdown process (see below) is completed. When there is not an error, a report of the account data read from the file is printed. File format: - File name: accounts.txt - First Line: the number of accounts - Each following line, one per account: account# pin and balance, separated by a space. - The ATM then proceeds to processing customers

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

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions

Question

6. Conclude with the same strength as in the introduction

Answered: 1 week ago

Question

7. Prepare an effective outline

Answered: 1 week ago