Assignment 8: 101010
Due: Before the start of next week’s lab
Problem 1: [8pt]
Convert the following numbers, by hand, to base 10. Show your work. Then using the built-in
function base2dec() verify your results. Tabulate your results and add it to the report.
Number Result (by hand) Verification (by function)
1101011
2
1452
8
000
1
ACDC
16
Problem 2: [12pt]
Convert the following numbers, by hand, to base b. Show your work. Then using the built-in
functions base2dec() and dec2base() verify your results. Tabulate your results and add it to
your report.
Number Base (b) Result (by hand) Verification (by function)
42
10
2
2012
10
7
101011
2
16
111022
4
8
423434
5
30
1
ENCP 100: Engineering Programming