Assignment 2, due Feb 1
Part of
the homework for 22C:60 (CS:2630), Spring 2013
|
On every assignment, write your name legibly as it appears on your University ID card! Homework is due on paper at the start of class on the day indicated (usually Friday). Exceptions will be made only by advance arrangement (excepting "acts of God"). Late work must be turned in to the TA's mailbox (ask the CS receptionist in 14 MLH for help). Never push homework under someone's door!
A Problem:
Convert each of the following duodecimal numbers to decimal:
a) 100
b) A9
c) 234
Another Problem:
Convert each of the following decimal numbers to duodecimal:
d) 100
e) 512
00010111 00010111 01111010 11011001 10101101
11100100 01001110 11001010 11101111 01010110
01101001 01011110 01001100 10001010 00100101
11010101 01010010 00110100 10010000 00000101
a) What is the decimal equivalent of each of the two halfwords that make up this word? Give them in order of ascending memory addresses. (0.2 points)
b) What is the decimal equivalent of each of the four bytes that make up this word? Give them in order of ascending memory addresses. (0.3 points)
(In this final problem, feel free to use calculators, on-line or off, but you will need to look at Chapter 3 first.)