Homework 1 Information, ECS50 Spring 1998
- Homework due by Midnight on Monday, April 13
- Do all problems.
Assignment:
(1) Do Problem 1.2 with the following numbers:
29, 89365, 17, 2049, 255, 128
(2) Problem 1.3
(3) Do Problem 1.4 with the following numbers: (0x = base 16, 0o = base 8)
0xA349, 0xFE03, 0x125B, 0x39C4
0o7532, 0o1234, 0o7714, 0o4256
(4) Do Problem 1.5 with the following binary numbers:
1 1 0 0 1 1 1 1 0 0 1 1
0 0 1 0 1 1 0 1 1 0 1 0 1
1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0
1 0 0 1 1 1 0 0 0 0 1 1 1 1 1 0
0 0 1 1 1 1 1 1 0 0 0 0 0 1 1 1
(5) Do Problem 1.6 with the following numbers:
-87, 1100, 542, -21043, -2, 30
(6) Do Problem 1.7 with the following hex numbers:
FF0A, 0A23, D2A4, 798C, 3B03, 8182
(7) Do Problem 1.8 assuming a 14-bit word size.
(8) Do Problem 1.9 (a) with the following patterns:
$5468697320636C61737320697320677265617421
$54686579277665206B696C6C6564204B656E6E7921
Do Problem 1.9 (b) with the following strings:
"Happy Birthday!
"Time is Money"
"Say what?"
(9) Do Problem 1.11 (a) with the following numbers:
$871AD0, $7FB800
Do Problem 1.11 (b) with the following numbers:
27.625, -36.375