EY41 Lecture Exercise #1

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

`

LECTURE EXERCISE #1:


BINARY BASICS

EY41 –
PROGRAMMABLE
LOGIC CONTROLLER

SUBMMITED BY:
EARL PATRICK S. EUGENIO

LECTURE EXERCISE #1
Lecture Exercise #1 : BINARY BASICS

DIRECTIONS:

Convert the given values into its decimal value. Show your solution and box the final
answer. Please submit your work in PDF format. (5pts each)

Example:

Given:

101101102 → ________ 10

Solution:

1. 100101112
2. 011011112
3. 110011002
4. 100010112
5. 10238
6. 3428
7. 6828
8. F12A16
9. FFFF16
10. 1B2F16

EY41 – PROGRAMMABLE LOGIC CONTROLLER 3


ANSWERS:

1. 100101112 = 151
Solution:
(10010111)₂= (1 × 2⁷) + (0 × 2⁶) + (0 × 2⁵) + (1 × 2⁴) + (0 × 2³) + (1 × 2²)
+ (1 × 2¹) + (1 × 2⁰) = (151)₁₀

2. 011011112 = 111

Solution:
(01101111)₂ = (0 × 2⁷) + (1 × 2⁶) + (1 × 2⁵) + (0 × 2⁴) + (1 × 2³) + (1 × 2²)
+ (1 × 2¹) + (1 × 2⁰) = (111)₁₀

3. 110011002 = 204

Solution:

(11001100)₂ = (1 × 2⁷) + (1 × 2⁶) + (0 × 2⁵) + (0 × 2⁴) + (1 × 2³) + (1 × 2²)


+ (0 × 2¹) + (0 × 2⁰) = (204)₁₀

4. 100010112 =139

Solution:

(10001011)₂ = (1 × 2⁷) + (0 × 2⁶) + (0 × 2⁵) + (0 × 2⁴) + (1 × 2³) + (0 × 2²)


+ (1 × 2¹) + (1 × 2⁰) = (139)₁₀

5. 10238 = 531

Solution:

(1023)8 = (1 × 83) + (0 × 82) + (2 × 81) + (3 × 80) = (531)10

6. 3428 = 226

Solution:

(342)8 = (3 × 82) + (4 × 81) + (2 × 80) = (226)10

7. 6828=

8. F12A16= 61,738

Solution:

(F12A)16 = (15 × 163) + (1 × 162) + (2 × 161) + (10 × 160) = (61738)10

9. FFFF16 = 65535

Solution:

(FFFF)16 = (15 × 163) + (15 × 162) + (15 × 161) + (15 × 160) = (65535)10


10. 1B2F16=6959

Solution:

(1B2F)16 = (1 × 163) + (11 × 162) + (2 × 161) + (15 × 160) =


(6959)10

You might also like