Docsity

CS-139 Fall 2004 Homework #1: Analyzing the ATM Algorithm - Prof. Mohamed Aboutabl, Assignments of Computer Science

Toggle sidebar
bg1
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.

Partial preview of the text

Download CS-139 Fall 2004 Homework #1: Analyzing the ATM Algorithm - Prof. Mohamed Aboutabl and more Assignments Computer Science in PDF only on Docsity!

CS-139 Fall 2004

Homework # 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.