SHS CSS 2 Programming - Week 03
SHS CSS 2 Programming - Week 03
Values Integration:
Nowadays, animation is already a large part of daily life-from games in gadgets to mainstream
movies, they are anywhere, However, a few decades ago, animation is very limited. Animation came a long way
before getting to gadgets, televisions and big screens. The industry of animation began less than 150 years ago,
but it has developed into multiple platforms and became very accessible to everyone.
Today, animation plays a big part in multimedia content. Animation can be used to strengthen all special effects
in motion picture and productions or to create a whole movie by itself. It comes anywhere and it can go anywhere
from a large production team working in a highly specialized studio to an individual who’s working out on a
bedroom from the big cinema screen or to a mobile phone.
3. What are some rules that you think must be followed when creating a program?
Discussion :
WHAT IS A COMPUTER?
• A Computer is an electronic device capable of performing
complex computations in a short time.
COMPONENTS OF A COMPUTER
• Hardware - the physical equipment of a computer system, including the
monitor, keyboard, central processing unit, and storage devices.
• Software - refers to one or more computer programs and data held in the
storage of a computer for some purpose.
Data representation - data representation is the conversion of images, letters and sounds to digital
electrical signals. Here, a digital electrical signal refers to a combination or
sequence of “on” and “off” signals.
Digital electronics – is the technology used in the manipulation of “on” and “off” (digital electrical)
signals to perform complex tasks.
Digital device - most computers are digital, as opposed to analog, devices. A digital device works
with discrete signals such as 0 and 1 while an analog device works with continuous
data.
Analog device - a traditional light switch has two discrete states — on and off. A dimmer switch, on
the other hand, has a rotating dial that controls a continuous range of brightness —
from none (off) to full brightness. The first is therefore, a digital device while the latter
is an analog device.
A series of 0’s and 1’s results in a particular number much in the same
way we use the decimal number system.
The “0” and “1” are also known as bits or binary digits. A 5bit sequence or combination
of “0” and “1” could be written as 10011. At face value, this sequence may have no clear
significance. However, this gain meaning with additional information. For instance, this may
• Numeric data like your age, salary, and electricity bill are easily understood by humans but
how is it possible for a computer to show a number using only binary digits?
The computer uses the binary number system which uses only two digits: 0 and 1. There are
no 2’s or 3’s. A series of0’s and 1’s results in a particular number much in the same way as
the decimal number system we use.
How then can a computer represent words and letters using bits?
• Bits can also be used to represent character data. In this case, computers makes use of 0 and 1
as a replacement to dashes and dots.
Bits can also be used to represent character data. It is analogous to Morse code that uses the dots
and dashes to represent letters in the alphabet. In this case, computers make use of 0 and 1 as a
replacement to dots and dashes. For example, using the 8-bit or extended ASCII, the letters S,
T, and I have corresponding binary values.
Example:
• ASCII stands for American Standard Code for Information Interchange. It defines a set of characters
that are displayed on screen. Standard ASCII uses only seven bits for each character but it has been
extended to 8 bits to accommodate more symbols.
• EBCDIC stands for Extended Binary Coded Decimal Interchange Code, which is an alternative 8-bit
code used by older IBM mainframe computers.
• UNICODE is an 8, 16, or 32-bit character encoding scheme that provides codes for 65,000
characters that provides codes for 65,000 characters. This was developed to represents all the writing
systems of the world.
Extended ASCII code makes use of a series of 0’s and 1’s to represent 256 characters (including
letters for uppercase and lowercase, numbers, and symbols).
Some people interchange the use of bits and bytes. Note that bit is a contraction of binary digit. The
abbreviation for bit is a lowercase “b”. A byte is a collection of bits (8 to be exact) and is usually
abbreviated as an uppercase “B”. Usually, the unit bits are used when measuring transmission
speeds. An example of a speed transmission measurement is the transmission rate of a modem (e.g., 56
kilobits per second or kbps). On the other hand, the unit bytes are usually used in measuring capacity.
For instance, bytes are used to measure the capacity of hard disks (e.g., 80 GB or Giga Bytes).
10
Kilo K
2
20
Mega M
2
30
Giga G
2
40
Tera T
2
Bits and bytes use prefixes to indicate large values. Note that the measurement is in base 2. A common
mistake is to think that the binary kilo prefix refers to a factor of 1000. Actually, the closest to 1000 in
binary is 2, which is 1024 and not 1000. Knowing that, we can evaluate then that a kilobit (a.k.a. Kb or
Kbit) is 1024 bits and a kilobyte (a.k.a. KB or Kbyte) is 1024 bytes. Note that the prefix is lowercase for
the decimal kilo and uppercase for the binary version. The table below shows the prefixes with the
corresponding abbreviation and capacity/value.
Hard Drive manufacturers provide approximate nonformatted capacities. Hence, an 80-GB HD will not
show 80GB after formatting. Sometime in the 90's, some manufacturers used miobytes to mean million
(106) bytes. In 2005, they introduced a new standard for binary prefixes that includes kibi- (Ki) for 210,
mebi- (Mi) for 220, gibi- (Gi) for 230, etc. These prefixes haven't been well adopted so far.
How are bits stored and transferred from one point to another?
Since most computers are electronic devices, bits take the form of electrical pulses traveling over the
circuits. All circuits, chips, and mechanical components forming a computer are designed to work with
bits.
Storage is either via electronic switches or electronic charges. Electronic switches are either on or off
while charging devices are either charged or discharged. One of the 2 states are identified as 0 while the
other is 1.
Since most computers are electronic devices, bits take the form of electrical pulses traveling over the
circuits. All circuits, chips, and mechanical components forming a computer are designed to work with
bits.
Input Output
Computer
Devices Devices
Memory
• Input devices are machines that generate input for the computer, such as keyboard and mouse.
• Processor or CPU (Central Processing Unit) is the central electronic chip that controls the processes
in the computer. It determines the processing power of the computer.
• Memory is the part of the computer that stores applications, documents, and systems operating
information.
• Output devices are machines that display information from the computer, such as monitor, speaker,
and printer.
Activity :
Materials:
-Pen -A sheet of paper
• Hoffer J., George G., & Valacich J. (2008). In 5 Ed., Modern systems
analysis and design. Pearson Prentice Hall.