Shahezad Contractor
2/16/06
Dr. Ebrahimi

Topic: LOOP AND DECISION MAKING

Scenario of an ATM Machine

http://www.drprojectservices.com/images/Triton RT5000 TTW - Straight-200.jpg

The word that makes the computer go around is WHILE

I went to the bank yesterday.  I put my card inside the ATM.  A message box appeared onto the screen and asked me the enter the pin number.  After that I put in my pin number and an input routine (statement) took my input and placed it into a variable (pin variable).  An if statement matched the pin number and compared it to existing pin number (file of pin number).  If the result became true a series of message box display the options, such as withdraw, balance, transfer or deposit.  Through the input routine I select input Withdrawal.   A message box displayed a series of withdrawal options.  (Fast cash 40, 60, 100, 200, other).  I choose other and then it asked me to enter the amount.  An input routine took my amount.  I entered 500.  An if statement took my input and compared it to the limit and found true.  A message box came and said, you cannot withdraw.  I went through the while statement to realize that I passed the limit of the bank.  I finally realized that i have to put 400 and this time it took my amount and compared it with my balance and an if statement tells me that its ok.  I got my money and my current balance.   balance = balance - withdrawal. 

WHAT WOULD HAPPEN IF THAT STATEMENT INSIDE THE PROGRAM
balance = balance - withdrawal was
balance = balance + withdrawal?

PROGRAM ON PAGE 66

If you are working in the Bronx zoo.  If someone asks you if you saw an elephant or if somebody asks you what is programming?

A program is a bunch of words at the beginning.  Some of them are pre defined and some are not.




IMPORTANT

Send your ten questions for the quiz
Email it to
ebrahimidr@gmail.com
cc:
shahezadc@yahoo.com
you can add or delete the questions.

 

Akibu, Hakeem O. +2
Alagheband, Shadi Crystal +1
Colon, Christen N. +1
Contractor, Shahezad M. Captain
+1
Francoeur, Ralph J. +2
Ghazanchyan, Farideh +1
Guo, Sunli +1
Halajian, Alishan A.  
Hicks, Rory +1
Nemati, Matthew +1
Paul, My-Kerline +2
Saeed, Amna +1
Saeed, Asma +1