Advanced Placement Computer Science AB:
Assignment 1
    Sewickley Academy, 2000-2001

See Course Home Page.  Also, see the Solutions to Assignment 1.

Note:  Solo only -- you may not work in teams on this assignment.

Also note:  You must submit your homework by email, and it must be received by the start of class on the due date.
 
Date Assigned: Thu Sep-7
Date Due: Fri Sep-8 by start of P8

1a.  Express -41 in 11-bit 2's complement
b.  Express -603 in 4-bit 2's complement
c.  Express -73 in 8-bit 2's complement
d.  Express 61 and -34 in 9-bit 2's complement, then express their sum also in 2's complement.

2.  Write a brief, but clear, tutorial explaining negation in 2's complement.  You can submit your tutorial in any reasonable format (A Word document, a PDF file, a web page, etc).  Web pages are most preferred, actually, but any format will get equal grading.

3.  Consider the hexadecimal number AC17
a.  Express it in base 10
b.  Express it in binary (base 2)
c.  Assuming this is ASCII, what characters does it represent?
d.  Assuming it is a 2-byte 2's complement number, what number does it represent?
e.  Assuming it is a 2-byte unsigned integer, what number does it represent?
f.  Assuming it is a floating-point number (as described in our text), what number does it represent?.

See Course Home Page.