Assignment-1

docx

School

Los Angeles City College *

*We aren’t endorsed by this school

Course

03

Subject

Accounting

Date

Apr 3, 2024

Type

docx

Pages

11

Uploaded by ColonelOxideBeaver30

Report
Assignment – 1 CIT 101/L Fall 2023 Save answers as MS Word file. Due to Canvas on Friday 9/22/2023 at 11:55pm. ------------------------------------------------------------------------------------------------------------- 1. Convert the following binary numbers to decimal equivalents: A, 001100 = 0x2 5 + 0x2 4 + 1x2 3 + 1x2 2 + 0x2 1 + 0x2 0 = 0x32 + 0x16 + 1x8 + 1x4 + 0x2 + 0x1 = 0 + 0 + 8 + 4 + 0 + 0 =12 B, 000011 = 0x2 5 + 0x2 4 + 0x2 3 + 0x2 2 + 1x2 1 + 1x2 0 = 0x32 + 0x16 + 0x8 + 0x4 + 1x2 + 1x1 = 0 + 0 + 0 + 0 + 2 + 1 = 3 C, 011100 = 0x2 5 + 1x2 4 + 1x2 3 + 1x2 2 + 0x2 1 + 0x2 0 = 0x32 + 1x16 + 1x8 + 1x4 + 0x2 + 0x1 = 0 + 16 + 8 + 4 + 0 + 0 = 28 D, 111100 = 1x2 5 + 1x2 4 + 1x2 3 + 1x2 2 + 0x2 1 + 0x2 0 = 1x32 + 1x16 + 1x8 + 1x4 + 0x2 + 0x1 = 32 + 16 + 8 + 4 + 0 + 0 = 60 E, 111111= 1x2 5 + 1x2 4 + 1x2 3 + 1x2 2 + 1x2 1 + 1x2 0 = 1x32 + 1x16 + 1x8 + 1x4 + 1x2 + 1x1 = 32 + 16 + 8 + 4 + 2 + 1 = 63
2. Convert the following binary numbers to their decimal equivalents: A, 11100.001 = 1 x 2 4 + 1 x 2 3 + 1 x 2 2 + 0 x 2 1 + 0 x 2 0 + 0 x 2 0 + 0 x 2 -1 + 0 x 2 -2 + 1 x 2 -3 = 1 x 16 + 1 x 8 + 1 x 4 + 0 + 0 + 0 + 0 + 0 + ⅛ = 16 + 8 + 4 + 0 + 0 + 0 + 0 + 0 + 0.125 = 28 + 0.125 = 28.125 B, 110011.10011 = 1 x 2 5 + 1 x 2 4 + 0 x 2 3 + 0 x 2 2 + 1 x 2 1 + 1 x 2 0 + 1 x 2 -1 + 0 + 0 + 1 x 2 -4 + 1 x 2 -5 = 1 x 32 + 1 x 16 + 0 + 0 + 1 x 2 + 1 + 1/2 + 0 + 0 + 1/16 + 1/32 = 32 + 16 + 2 + 1 + 0.5 + 0.0625 + 0.03125 = 51.59375 C, 101010101010.1 = 1 x 2 11 + 0 x 2 10 + 1 x 2 9 + 0 x 2 8 + 1 x 2 7 + 0 x 2 6 + 1 x 2 5 + 0 x 2 4 + 1 x 2 3 + 0 x 2 2 + 1 x 2 1 + 0 x 2 0 + 1 x 2 -1 = 2048 + 0 + 512 + 0 + 128 + 0 + 32 +0 + 8 + 2 + 0.5 = 2730 + 0.5 = 2730.5 3. Convert the following decimal numbers to their binary equivalents A, 64 = 01000000 64 ÷ 2 = 32 r 0 32 ÷ 2 = 16 r 0 16 ÷ 2 = 8 r 0 8 ÷ 2 = 4 r 0 4 ÷ 2 = 2 r 0 2 ÷ 2 = 1 r 0 1 ÷ 2 = 0 r 1
B, 128 = 10000000 128 ÷ 2 = 64 r 0 64 ÷ 2 = 32 r 0 32 ÷ 2 = 16 r 0 16 ÷ 2 = 8 r 0 8 ÷ 2 = 4 r 0 4 ÷ 2 = 2 r 0 2 ÷ 2 = 1 r 0 1 ÷ 2 = 0 r 1 C, 256 = 100000000 256 ÷ 2 = 128 r 0 128 ÷ 2 = 64 r 0 64 ÷ 2 = 32 r 0 32 ÷ 2 = 16 r 0 16 ÷ 2 = 8 r 0 8 ÷ 2 = 4 r 0 4 ÷ 2 = 2 r 0 2 ÷ 2 = 1 r 0 1 ÷ 2 = 0 r 1 D, 100 = 01100100 100 ÷ 2 = 50 r 0 50 ÷ 2 = 25 r 0 25 ÷ 2 = 12 r 1 12 ÷ 2 = 6 r 0
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
6 ÷ 2 = 3 r 0 3 ÷ 2 = 1 r 1 1 ÷ 2 = 0 r 1 E, 111 = 0111111 111 ÷ 2 = 55 r 1 55 ÷ 2 = 27 r 1 27 ÷ 2 = 13 r 1 13 ÷ 2 = 6 r 1 6 ÷ 2 = 3 r 0 3 ÷ 2 = 1 r 1 1 ÷ 2 = 0 r 1 F, 145 = 10010001 145 ÷ 2 = 72 r 1 72 ÷ 2 = 36 r 0 36 ÷ 2 = 18 r 0 18 ÷ 2 = 9 r 0 9 ÷ 2 = 4 r 1 4 ÷ 2 = 2 r 0 2 ÷ 2 = 1 r 0 1 ÷ 2 = 0 r 1 G, 255 = 11111111 255 ÷ 2 = 127 r 1 127 ÷ 2 = 63 r 1 63 ÷ 2 = 31 r 1
31 ÷ 2 = 15 r 1 15 ÷ 2 = 7 r 1 7 ÷ 2 = 3 r 1 3 ÷ 2 = 1 r 1 1 ÷ 2 = 0 r 1 4. Convert the following decimal numbers to their binary equivalents A, 34.75 = 100010.11 34 ÷ 2 = 17 r 0 17 ÷ 2 = 8 r 1 8 ÷ 2 = 4 r 0 4 ÷ 2 = 2 r 0 2 ÷ 2 = 1 r 0 1 ÷ 2 = 0 r 1 0.75 × 2 = 1 + 0.5 0.5 × 2 = 1 + 0 B, 25.25 = 11001.01 25 ÷ 2 = 12 r 1 12 ÷ 2 = r 0 6 ÷ 2 = 3 r 0 3 ÷ 2 = 1 r 1 1 ÷ 2 = 0 r 1 0.25 × 2 = 0 + 0.5 0.5 × 2 = 1 + 0. C, 27.1875
27 ÷ 2 = 13 r 1 13 ÷ 2 = 6 r 1 6 ÷ 2 = 3 r 0 3 ÷ 2 = 1 r 1 1 ÷ 2 = 0 r 1 5. Convert the following hexadecimal number to their decimal equivalents a, C = 12 b, 9F Decimal equivalent of "F" = (F) 15 × 16^0 = 15 Decimal equivalent of "9" = 9 × 16^1 = 144 Decimal equivalent of "9F" = 15+144 9F = 159 c, B52 Decimal equivalent of "2" = 2 × 16^0 = 2 Decimal equivalent of "5" = 5 × 16^1 = 80 Decimal equivalent of "B" = (B) 11 × 16^2 = 2816 Decimal equivalent of "B52" = 2+80+2816 B52 = 2898 d, F117 Decimal equivalent of "7" = 7 × 16^0 = 7 Decimal equivalent of "1" = 1 × 16^1 = 16 Decimal equivalent of "1" = 1 × 16^2 = 256 Decimal equivalent of "F" = (F) 15 × 16^3 = 61440 Decimal equivalent of "F117" = 7+16+256+61440 F117 = 61719 e, ABCD
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Decimal equivalent of "D" = (D) 13 × 16^0 = 13 Decimal equivalent of "C" = (C) 12 × 16^1 = 192 Decimal equivalent of "B" = (B) 11 × 16^2 = 2816 Decimal equivalent of "A" = (A) 10 × 16^3 = 40960 Decimal equivalent of "ABCD" = 13+192+2816+40960 ABCD = 43981 f, 1111.1 Decimal equivalent of "1" = 1 × 16^0 = 1 Decimal equivalent of "1" = 1 × 16^1 = 16 Decimal equivalent of "1" = 1 × 16^2 = 256 Decimal equivalent of "1" = 1 × 16^3 = 4096 Decimal equivalent of "1111" = 1+16+256+4096 1111 = 4369 Decimal equivalent of "1" = 1 × 16^-1 = 0.0625 Decimal equivalent of "0.1" = 0.0625 0.1 = 0.0625 = 1111.1 = 4369+ 0.0625 1111.1 = 4369.0625 g, 888.8 Decimal equivalent of "8" = 8 × 16^0 = 8 Decimal equivalent of "8" = 8 × 16^1 = 128 Decimal equivalent of "8" = 8 × 16^2 = 2048 Decimal equivalent of "888" = 8+128+2048 888 = 2184 Decimal equivalent of "8" = 8 × 16^-1 = 0.5
Decimal equivalent of "0.8" = 0.5 0.8 = 0.5 = 888.8 = 2184 + 0.5 888.8 = 2184.5 h, EBA.C Decimal equivalent of "A" = (A) 10 × 16^0 = 10 Decimal equivalent of "B" = (B) 11 × 16^1 = 176 Decimal equivalent of "E" = (E) 14 × 16^2 = 3584 Decimal equivalent of "EBA" = 10+176+3584 EBA = 3770 Decimal equivalent of "C" = (C) 12 × 16^-1 = 0.75 Decimal equivalent of "0.C" = 0.75 0.C = 0.75 EBA.C = 3770 + 0.75 EBA.C = 3770.75 6. Convert the following decimal numbers to their hexadecimal equivalents a, 80 = 50 Division by 16 Quotient Remainder (Digit) 80/16 5 0 5/16 0 5 - - - b, 2560 = A00
Division by 16 Quotient Remainder (Digit) Remainder (Hex) 2560/16 160 0 0 160/16 10 0 0 10/16 0 10 A c, 65536 = 10000 Division by 16 Quotient Remainder (Digit) 65536/16 4096 0 4096/16 256 0 256/16 16 0 16/16 1 0 1/16 0 1 d, 204.125 = CC.2 Division by 16 Quotient Remainder (Digit) Remainder (Hex) 3266/16 204 2 2 204/16 12 12 C 12/16 0 12 C e, 631.25 = 277.4 Division by 16 Quotient Remainder (Digit) 10100/16 631 4 631/16 39 7 39/16 2 7 2/16 0 2 f, 100000.00390625 = 2710.01 Division by 16 Quotient Remainder (Digit)
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
2560001/16 160000 1 160000/16 10000 0 10000/16 625 0 625/16 39 1 39/16 2 7 2/16 0 2 7. Convert the following decimal numbers to their octal equivalents A, 68 Octal equivalent: 104 68/8 = 4 8/8 = 0 1/8 = 1 B, 236 Octal equivalent: 354 236/8 = 4 29/8 = 5 3/8 = 3 C, 348 Octal equivalent: 534 348/8 = 4 43/8 = 3 5/8 = 5 D, 584 Octal equivalent: 1110 584/8 = 0 73/8 = 1
9/8 = 1 1/8 = 1 8. Convert the following octal numbers to their decimal equivalents A, 47 = 4x8 1 + 7x8 0 =39 B, 75 = 7x8 1 + 5x8 0 = 61 C, 360 = 3x8 2 + 6x8 1 + 0x8 0 =192 + 48 + 0 =240 D, 545 = 5x8 2 + 4x8 1 + 5x8 0 =5 + 32 + 320 =357