Code for Chapter 1: Computer Arithmetic