CSC 373: Computer Systems I
Homework 2
Due by 11:50 am on Tuesday, January 21
Please write precise and concise answers.
Reading
Read sections 2.1 and 2.2 of BO* as well as the lecture 2
notes.
*BO = Computer Systems by Bryant and O'Hallaron
*KR = The C Programming Language by Kernighan and Ritchie
Make sure that you work out every practice problem in
*BO! Peek at the solutions (presented at the end of the
chapter) if you have to.
Assignment
0. Subscribe to the course mailing list by sending an email to csc373winter14+subscribe@googlegroups.com
.
1. Convert 0xFEDCBA98 from hex to binary.
2. Convert 10101011 10101010 01010010 10001010 from binary
to hex.
3. Convert 0x0000123B from hex to decimal notation.
4. Convert 11111111 from binary to decimal
notation.
5. Problems 2.59, 2.60, 2.61 (A,B,C only), 2.66, and 2.68. You may
find the file /home/prof/public/hw2.c useful to test your solutions.
Please use the to discuss this assignment between yourselves, and
also with me. Write your solutions in a .txt ASCII text file and
submit them through COL.
When done, get started on the Datalab.