Objectives

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 15

Objectives:

At the end of the lesson students must have :


Analyzed the data representation in a computer.
Performed conversion of decimal to binary.
100100101 293

101110111 375

111100110 486
Compare the difference between how computer and
human recognize number based on the given
example.
DATA
REPRESENTATION
IN A COMPUTER
DATA REPRESENTATION
IN A COMPUTER
Data or characters like, numbers, letters, symbols,
sound, video or pictures
need to convert first into a machine-readable form
like binary form.
The On state is represented
by “1” and OFF state is “0”.
These 1 and 0 forms the
electrical signal that only
computer can accept and
understand
USING BINARY SYSTEM
IN COMPUTER
BIT - A binary digit that hold only one of two
values: 0 or 1
- the smallest data on computer
-bit are assembled into a group of eight to
form a BYTE
CONVERTING A
DECIMAL NUMBER
TO
BINARY NUMBER
RULES IN CONVERTING
DECIMAL TO BINARY
1.Divide the number by 2
2.Copy the quotient and write quotient remainder 128
the remainder
3.Divide the quotient by 2
4.Repeat steps 2 and 3 until you
get a quotient of 0.
5.Read the values of the
remainder from the bottom to
top. Write the values to get the
binary value of the decimal
number.
RULES IN CONVERTING
DECIMAL TO BINARY
128 QUOTIENT REMAINDE
1. Divide the number by 2
128/2 64 R 0
2. Copy the quotient and 64/2 32 0
write the remainder
32/2 16 0
3. Divide the quotient by 2 16/2 8 0
8/2 4 0
4. Repeat steps 2 and 3 until
you get a quotient of 0. 4/2 2 0
2/2 1 0
5. Read the values of the remainder
from the bottom to top. Write the
1/2 0 1
values to get the binary value of the
decimal number.
50 QUOTIENT REMAINDE
R
50/2 25 0
25/2 12 1
12/2 6 0
6/2 3 0
3/2 1 1
1/2 0 1

110010
Essential questions

o What is the binary number of 128?


10000000
o What mathematical operation used in converting
decimal to binary?
Division
o In what direction you are going to read the remainder
to get the binary value?
Bottom to Top
20 40
20/2 10 0 40/2 20 0
10/2 5 0 20/2 10 0
5/2 2 1 10/2 5 0
2/2 1 0 5/2 2 1
1 /2 0 1 2/2 1 0
1/ 2 0 1
20 = 10100 40 = 101000
Essential questions

o What are the two numbers that computer could only


recognize?
0 and 1
o what is the difference between Bit ?and Byte?
Bit- two values; byte – eight values
o What are the two state represented by 0 and 1?

On and off state


MATCHING TYPE
DIRECTION: Match Column A to Column B

Column A Column B

1) Bit a) 1111
2) 1 and 0 b) bit are assembled into a group of eight
3) byte c) the smallest data on computer
4) 15 d) forms the electrical signal that only
5) 25 computer can accept and understand
e) 11001
ASSIGNMENT
Direction: Convert the following decimal number
into binary units.

1. 45
2. 55
3. 100
4. 80
5. 92

You might also like