Bit Byte

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

WHAT

WAS THE
SONG
ABOUT?
LeT’S
REVIEW!
Write down the
name of the
components
What is the
value of a bit?
How many bits
does a byte
have?
Guess the
word?!?
kb
kilobyte
mb
megabyte
gb
gigabyte
How to convert
decimal number to
binary codes?
1. Divide the given value
by 2 until Quotient has
become 0.
 Ex: 10
Q (quotient) R (remainder)
10/2 5 0
5/2 2 1
2/2 1 0
1/2 0 1
2. Get the remainder then
read/write starting from
bottom to up.
Q (quotient) R (remainder)
10/2 5 0
5/2 2 1
2/2 1 0
1/2 0 1
10 = 1010
3. check! By putting the
value 1 starting from the 1 st

digit on the right side.

1010
842 1
3. below the bits with the
value 1, add all the
equivalent decimal values
aligned to it.
1010= 8 + 2 = 10 √
842 1
What is our given
number?
Was our answer
correct?
Group
Work!
The first group
to finish
converting gets
1 point.
1 chance only
per group!
Ready?
Get the binary
code of the
decimal
number 36.
The correct
answer is?
36 = 100100
How?
Q (quotient) R (remainder)
36/2 18 0
18/2 9 0
9/2 4 1
4/2 2 0
2/2 1 0
1/2 0 1
1 0 0 1 0 0= 32 + 4 =
36 √
F- 70
a- 97
e-
So Fae in
binary code is:
1000110
1100001
Group
Work!
The first group
to finish
converting gets
1 point.
1 chance only
per group!
Ready?
Get the binary
code of the word
Bit using the
ASCII SYSTEM.
The correct
answer is?
Bit = 1000010
1101001 1110100
How?
B= 66
=
1000010
i= 105
=
1101001
Let’s
check!
Q R
66/2 33 0 B= 66 √
33/2 16 1
16/2 8 0 =
8/2 4 0
4/2 2 0
1000010
2/2 1 0
1/2 0 1
i= 105
1 00001 =
0 1101001
Q R
105/2 52 1 B= 66 √
52/2 26 0
26/2 13 0 =
13/2 6 1
6/2 3 0
1000010
3/2 1 1
1/2 0 1
i= 105 √
1 1 0 10 =
01 1101001
Q R
116/2 58 0 B= 66 √
58/2 29 0
26/2 14 1 =
14/2 7 0
7/2 3 1
1000010
3/2 1 1
1/2 0 1
i= 105 √
1 1 1 01 =
00 1101001
Kilobyte =
10^3 =
1000bytes
Kilobyte =
2^10 =
1024bytes
megabyte =
10^6 =
1,000,000 bytes
megabyte =
2^20 =
1,048,576 bytes
megabyte =
1024x1024 =
1,048,576 bytes
gigabyte =
10^9 =
1,000,000,000
bytes
gigabyte =
2^30 =
1,073,741,824
bytes
gigabyte =
1024x1024x1024 =
1,073,741,824
bytes
How do we know
the number oF files
that can be stored in
a storage?
1. Get the given values.
 Ex: If a 20 KB file is stored in a 1 MB
folder, then how many files can be
stored in that folder?

Given:
File Size: 20 KB
Storage (Folder) Size: 1MB
2. Convert the their unit to
bytes.
HOW DO WE
CONVERT?
2. MULTIPLY THE
GIVEN VALUES TO THE
EQUIVALENT VALUE
PER QANTITY OF
BYTE.
What are the
equivalent bytes
values per quantity
of bytes?
1 KB = 1,024 bytes
1 MB = 1,048,576
bytes
1 GB =
2. CONVERT!
Given:

Multiplicand = the number to be


multiplied
Multiplier = the number by which we
multiply
Product = Answer

File Size: 20 KB x 1,024 bytes= 20,480


3. Once you already have
the byte equivalent of the
given values, you may now
DIVIDE!
Given:
File Size: 20,480 bytes
Storage (Folder) Size: 1,048,576 bytes
3. DIVIDE!
Formula:
Storage Size (dividend) ÷ File Size
(divisor) = Number of Files (Quotient)

Answer (whole number only)


File SizeStorage Size (SS)

Storage (Folder) Size: 1,048,576 bytes ÷


File Size: 20,480 bytes = 51.2
4. Get only the whole
number of the quotient.
DO not ESTIMATE!
 Answer: Approximately a total of 51
files can be stored in the folder.
Group
Work!
The first group
to finish
converting gets
1 point.
1 chance only
per group!
Ready?
How many 750
MB avi files can
be stored on a 4.3
GB DVD-R?
The correct
answer is?
Approximately
5 avi files can
be saved in the
dvd-r.
How?
What is our given
number?
Given:
FS(avi file): 750 MB x 1,048,576 bytes =
786,432,000 bytes
SS(dvd-r): 4.3 GB x 1073741824 bytes =
4,617,089,843.2 bytes
5.87
4,617,089,843.2 bytes 786,432,000
bytes

*get only the whole number


Answer: Approximately 5 avi files can be
Was our answer
correct?
What quantities are
used in measuring the
capacity of a storage
device?
What is the unit of
digital information in
computing and
telecommunications?
Why do need to
familiarize ourselves
to the different
quantities of bytes?
What are operations
used in converting a:
 Binary?
 Bytes?
Why is it important to
know first what the
given value is?
In order to get the
accurate calculation,
how should you
approach a given
situation?
evaluation
Answer for
10 MINS
1/4 sheet of paper
Answer only
Hps: 10
evaluation
Answer for
10 MINS
1/2 sheet of paper
Show computation
Hps: 10
1. Convert Decimal to
Binary:
100

2. How many 5 MB
mp3 files can be
Answer 6. E
1. C 7. J
2. I 8. B
3. D 9. A
4. F 10. H
5. G
1. Convert Decimal to
Binary:
100

2. How many 5 MB
mp3 files can be
Answer: Q (quotient) R (remainder)
100/2 50 0
50/2 25 0
25/2 12 1
12/2 6 0
6/2 3 0
3/2 1 1
1/2 0 1
1 1 0 0 1 0 0 =64+32 + 4
= 100 √
Given:
FS(avi file): 5 MB x 1,048,576 bytes =
5,242,880 bytes
SS(dvd-r): 1 GB x 1,073,741,824 bytes =
1,073,741,824 bytes
204.8
5,242,880 bytes 1,073,741,824 bytes

*get only the whole number


Answer: Approximately 204 avi files can
be saved in the dvd-r.
HOMEWORK
Review:
Lesson 2:
Components and the
bit and bytes
mensuration and

You might also like