ok, I'm trying to write a program using the Little Man computer instructions, and I asked my prof how to divide two numbers using repeated division. he told me that you need to have a separate mailbox to store the quotient, and after each time you subtract the divisor from the dividend, you add 1 to the quotient's mailbox. but my question is...when you use the add instruction, doesn't the little man add that number onto the calculator? how can I add 1 to the mailbox itself to store the quotient after each subtraction?
2007-11-05
09:03:24
·
2 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design