Worksheet for C math (Binary, decimal, hex)
Instructions:
Write each problem using a separate sheet of paper. Then do the math showing ALL your work.
Submissions without all the steps will be graded as a zero (0).
The following are a couple of helpful hints for y'all to use:
Binary
0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
Decimal 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Hex 0 1 2 3 4 5 6 7 8 9 A B C D E F
Number Line for Hex:
0 1 2 3 4 5 6 7 8 9 A B C D E F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20
Addition:
0100 1100 001001 010101 10000 011001 000111
+010 +0011 +10111 +101100 +11101 +111001 +101000
2C6 0F0F C123 0FFF 0F01 1010 9876 1982 CCDF
+CF1 + F0D1 +3456 +C001 +EBC1 +0FFF +DCF2 +ABCD +22 30
Subtraction:
Convert to binary then subtract (Remember 2's complement!!) Or just do Hex math!
CF1 F000 EDE0 C00F 1234 CCDE F123 ABCD F000
-3ED -EFF0 -CDEF -1234 -00FF -BAB1 -EAFF -9A8B -0FFF
Convert each decimal number to binary then add (again, the infamous 2s Compliment!)
DO NOT do the math and then just give me the answer in binary. I expect to see your conversion for each
negative number!
12 15 9 7 16 22 31 45 56
-2 -9 -2 -3 -15 -17 -23 -33 -48
Show every step of your work on a separate sheet of paper!!