Assignment Task
1) Convert the following decimal numbers using the iterative integer division (quotient-remainder) technique from lecture. Don’t forget to print the final result with its base identified.
(a) 345 to base 2
(b) 654 to base 6
2) Show the conversion from 0xBA5E to binary using the common base factor technique from class.
3) Show the conversion from the octal value 50267 to binary using the common base factor technique from class.
4) Show the conversion from 0xC731 to base 4 using the common base factor technique from class.
5) Show the conversion from 20210134 to hexadecimal using the common base factor technique from class.
6) Show the conversion from 0xD6B4A to octal using the common base factor technique from class.
7) Show the conversion from 3112034 to octal using the common base factor technique from class.
8) Show the conversion from the octal value 753721 to hexadecimal using the common base factor technique from class.
9) Show the conversion from 41703489 to base 3 using the common base factor technique from class.
10) Show the conversion from 0x57AE to binary using the common base factor technique from class.
11) Show the conversion from 110101011010011110112 to octal using the common base factor technique from class. The number is rewritten below to prevent copy mistakes.
11010101101001111011
12) What is the character (not hex or decimal code… eg, ‘a’ is a character) in the variable once this line of code completes?
char letter = ‘f’ – ‘a’ + ‘A’;
13) What is the character (not hex or decimal code… eg, ‘a’ is a character) in the variable once this line of code completes?
char letter = ‘D’ – ‘A’ + ‘a’;
14) Show the conversion to the BCD bitstring equivalent of the decimal number 174638?
15) Show the conversion to the decimal equivalent of the BCD bitstring 10101011000001001BCD?
10101011000001001BCD
16) Show the conversion to the BCD bitstring equivalent of the number 1036478? Careful, this one requires more than one conversion step.
