1
h14
CS8 S18
Name:
(as it would appear on official course roster)
Umail address: @umail.ucsb.edu
Optional: name you wish to be called
if different from name above.
Optional: name of "homework buddy"
(leaving this blank signifies "I worked alone"

h14: Number Conversions

ready? assigned due points
true Tue 05/22 03:30PM Thu 05/24 03:30PM

You may collaborate on this homework with AT MOST one person, an optional "homework buddy".

MAY ONLY BE TURNED IN IN THE LECTURE/LAB LISTED ABOVE AS THE DUE DATE.
There is NO MAKEUP for missed assignments, and you may not submit work in advance, or on behalf of another person.
In place of that, we drop the four lowest scores (if you have zeros, those are the four lowest scores.)


READING ASSIGNMENT

Please review the notes from lecture on Tuesday 05/22, and if necessary, review the material at this page: https://ucsb-cs8.github.io/topics/number_conversions

Then complete these problems and turn in your completed homework in class on the due date.

  1. (10 pts) Please fill in the information at the top of this homework sheet, including your name and umail address. If the other two items apply, please fill them in as well. Please do this every single time you submit homework for this class. It is important to fill in both name and umail every time, since handwriting is sometimes difficult to decipher. Having both helps us ensure you get credit for your work.

    Also: while we strongly prefer that you submit your homework on a single sheet of paper, if you MUST submit it on multiple sheets, JUST write your name at the top of both sheets and turn in both sheets UNCONNECTED.

    DO NOT staple, paper clip, spit-fold-and-tear, or do ANYTHING that would make it difficult to automatically feed your paper through a scanner.

  2. Complete each of the number conversions shown:

         
    (a) (10 pts) Convert 0110 1110 1101 0011 from binary to base 16  
        final answer only in box above
    (b) (10 pts) Convert 90 from decimal to binary  
        final answer only in box above
    (c) (10 pts) Convert 141 from decimal to binary  
        final answer only in box above
  3. Complete each of the number conversions shown:

         
    (a) (10 pts) Convert 0010 1010 from base 2 to base 10  
        final answer only in box above
    (b) (10 pts) Convert 1011 0001 1010 1000 from binary to base 16  
        final answer only in box above
  4. Complete each of the number conversions shown:

         
    (a) (10 pts) Convert 96 from decimal to binary  
        final answer only in box above
    (b) (10 pts) Convert 241 from decimal to binary  
        final answer only in box above
    (c) (10 pts) Convert 26b8 from base 16 to base 2  
        final answer only in box above
    (d) (10 pts) Convert 2 from octal to base 2  
        final answer only in box above