CPTR-141 Homework #3 - Due Monday 4/07/14


Regarding the CPTR-142 assignment for Monday, as mentioned in class please read pages 45 to 62 in chapter 2.

Answer the Quick Quiz 2.2 questions on page 58.

Then do exercise 2.2 numbers: 3, 6, 13, 17, 19, and 21.
Do the exercise 2.2 problems without using a program or calculator that does the specified conversions. To assist doing these problems recall that binary numbers are a positional number just like base 10, i.e. each digit position has a value that when multiplied by a digit in that position will give the value that is represented. For example, in the decimal number 235 the first digit's value is 100, the second digit 10 and the last digit one,' so the total value is 2x100 + 3x10 + 5x1. Since each digit of a binary number is either 0 or 1 it is easy to total up the value represented by a binary number where the value of a digits position is a power of two. For example, the binary number 101111 has a base 10 value of 1x32 + 0x16 + 1x8 + 1x4 + 1x2 + 1x1 or 47. I suggest you make a list of the powers of two for a 16 bit number, i.e. 1, 2, 4, 8, 16 ... up to 32768 to assist you.


Larry Aamodt PhD, PE
Professor of Engineering and Computer Science
Walla Walla University
Contact:
via email: AamoLa (at) wallawalla.edu
via phone: x2058