|
Although this lab is written up in Web format, it is intended to be largely a "paper and pencil" exercise. You may of course use any calculators or other computer tools that you find useful, but you should be capable of doing this kind of problem without a calculator or computer for examination purposes.
Instead of a demo for next week, hand in a paper version of your answers
by the due date. You may write your answers on a separate paper, but be
sure that it is clearly titled and that the exercises are indicated at
least by number and (at best) by a couple of identifying words.
(You may also choose to print out the lab and write
the final answers on the printed version.)
You may still wish to attend scheduled lab times in
order to ask questions about the assignment.
Note that I may assign another programming lab to begin before this written
one is due.
Exercise #1: Bits and alternatives
Base 10
Base 2
Base 8
Base 16
173
______
______
______
152
______
______
______
111
______
______
______
63
______
______
______
64
______
______
______
Base 10
Base 2
Base 8
Base 16
______
______
______
7F
______
10101001
______
______
______
______
777
______
Exercise #4: Fractions
Exercise #5: Floating point numbers
Exercise #6: Addition in other bases
n
log10(n)
log2(n)
Ratio
17 1.230449 4.087463 3.321928
27 1.431364 4.754888 3.321928
37 1.568202 5.209453 3.321928
47 1.672098 5.554589 3.321928