Tuesday, September 16, 2008

Divided We Fall

See slides 8 through 11 of ICS3M_1.9_VarsConsts_2.ppt for what we covered today. (Basically integer division and modulus division.) Everyone started work on the project/assignment (call it what you will) that's on slide # 11.

Here's a hint:

Assuming the user has input 647 then:
647 / 100 ==> 6
47 / 10 ==> 4
7 / 1 ==> 7

The challenge is that although you get 647 from the user you have to figure out how to get the 47 and then the 1 in order to perform the integer division on them. Could modulus division be the answer?

HEAR YE! HEAR YE! HEAR YE!
Mini-test next Monday the 22 of September on what we will have covered by then. There'll be a review on Friday's class.

No comments: