Integer Operations and Practical Problems (6.6 a,b)