Chandler-Gilbert Community College Spring 2005
ex 4.7 hint

Home
Schedule
Instructor
Links
Syllabus


You'll need to make sure you use integer division to find out how many hours.  Then, you can get the remainder by using the modulus operator (%).  Now, divide to get the number of minutes.  Again, use modulus for the remainder.   This remainder is the number of seconds. 

Breaking things into parts is a common use of integer division and modulus.  

Home ] Up ] Instructor ] Links ] Syllabus ]

date last modified: 01/14/03
copyright 2005 Greg Swan