A student writes: Dear Professor Patt, Hi, this is ************* again with another question about the programming assignment. Does our program need to be able to handle a division like 3/4, i.e., what should it do if the numerator is less than the denominator? Should the answer be 0 for the division? What would the modulo be? My computer science teacher did not teach modulo very well- that might be why I am confused about this. Is the remainder 3, or 4, or 1? Or is it really easy and I'm just not thinking right? Thanks! Sincerely, <> The best way to think of idiv (integer division) and modulo (remainder) is in terms of long division. Remember doing long division? Third grade, I think. you write down the dividend, and the divisor (both integers), and you crank. Suppose you stop when the next iteration would produce a digit to the right of the decimal point. You end up with a quotient and a remainder. Both are integers. The quotient is the result of idiv. The remainder is the result of modulo. So, for example: 256/19 13. ----- 19 | 256. 19 -- 66 57 -- 9 But we stop here, because the next digit generated would be to the right of the decimal point. Quotient is 13, Remainder is 9. Question: What is the maximum value that the modulo operator can produce? (i.e., what is the maximum remainder you can have in a long division?) Question: Minimum value? So, then 3/4. What is result of idiv? What is result of modulo? Yale Patt