
CS-139 Fall 2004
Homework #1
Take a look at the ATM algorithm which is listed as example 2.3, page 48 of your Schaum's textbook.
Your tasks:
1. Determine what the bank manager's requirements are. What led to this algorithm? For example,
one requirement is: A customer (user) must identify him/herself with a password. What are the
other requirements for these limited features?
2. There is a major flaw in the algorithm. What is it and how would you change the pseudocode to
reflect a more correct algorithm? On your paper, write the complete algorithm, with the
correction.
This assignment is due tomorrow (Thursday - Sept 02, 2004) at 2:00pm. To submit, do your work in a
Word document or a plain text file and submit it using “View/Complete Assignment” link on Blackboard.
It will not be feasible to submit the assignment after the due date/time mentioned above.