Chapter 1
Chapter 1
INTRODUCTION TO COMPUTING
First Semester, S.Y. 2020-2021
CHAPTER
1
THE COMPUTING
Learning Outcomes:
1. Explain what a computer
2. Explain how information is being process by the computer.
3. Compare and contrast procedure and algorithm.
4. Discuss Computer Functions.
5. Explore the types of computers and their functions, including the basic operations.
6. Differentiate hardware from software.
7. Compare data Sizes and speeds
8. Convert data into binary number system.
Topic Outline:
I. Process, Procedures, and Computers
A. Computer Parts
B. Computer Functions
C. Application of Computer, Advantages and Disadvantages
D. Computer Components
E. Data Sizes and Speeds
II. Number System
I. Process, Procedures, and Computers
Computing changes how we think about problems and how we understand the
world.
1. Nearly all of the most exciting and important technologies, arts, and sciences of today
and tomorrow are driven by computing.
2. Understanding computing illuminates deep insights and questions into the nature of
our minds, our culture, and our universe.
1. Accept input. Input could be entered by a human typing at a keyboard, received over
a network, or provided automatically by sensors attached to the computer.
3. Produce output. Output could be data displayed to a human, but it could also be
anything that effects the world outside the computer such as electrical signals that
control how a device operates.
A. Computer Parts
b) Storage devices
- Parts of the computer that hold information. The primary storage device is the
computer’s memory called RAM (random access memory). It remembers
everything that is read, input, or output. But, because the computer’s
memory is on a temporary area it forgets everything when turned off it must
have another place to store information permanently. This secondary storage
device is usually a disk like CD/DVD, USB Flash Drive, Hard Drive, or
External Drive.
Prepared and Compiled by: Alma P. Cablinan | IT Instructor
c) Processing device
- Parts of the computer that analyze input data to produce a result. To
accomplish this task the computer uses the processor and memory. They are
in the central processing unit (CPU). The CPU is considered the “brain” of the
computer, and we may find the memory (RAM) system.
- Parts we use to process the information on a computer are: Random Access
Memory (RAM) and Central Processing Unit (CPU).
d) Output devices
- Parts of the computer that gives out information generated by the computer,
like a monitor, printer or speaker.
Input – Process - Output
Process Output
Input (Data)
(Information)
Keyboard, digital camera, Central processing unit (CPU) Monitor, Printer, Speakers etc.
scanner etc.
Example of a
computing
system
1. Engineering – in engineering computers are used for designing using computer aided
design (CAD) software. Modelling and testing processes.
6. Banking – to keep client accounts details and issue cash transaction services at the
automated teller machines (ATM).
COMPUTER HARWARE
D. Computer Components Laptop Computer System
LCD Monitor
Computer Hardware
- Refers to the physical
components that make up
Speaker Systems PC Headset Wireless Routers
Keyboard & Mouse
a computer system. There
are many different kinds
of hardware that can be Graphic & Sound Cards
Computer Software
- Software is the instructions given to the computer that tells it what to do. A
computer cannot do anything without instructions. A computer must first read
instructions before it can start to work.
- Commonly known as programs or apps, consists of all the instructions that tell the
hardware how to perform a task. These instructions come from a software
Byte
A byte is a basic unit of measurement of information storage or transmission that
consists of 8 bits. It can be used to represent letters and numbers – up to 256 of
each. For example, a Byte containing the 8 bits 01000101 represents
The letter E in the ASCII character set, or
The number 69, since 26 + 22 + 20 = 69.
Twitter allows messages of up to 140 characters (Bytes), while SMS (Short
Message Service) or cell phone texting allows up to 160 Bytes. Most text only
emails can be measured in Bytes, i.e., the emails are relatively small.
KB or KiloByte
One KB is 1000 Bytes, at least if you don't wear the title "geek" as a badge of honor
and especially if you’re in marketing. When measuring disk space, one KB is 1024
bytes (210). Obviously, if you were selling a disk drive that could hold exactly 1000
bytes, it would be to your advantage to market it is a 1KB drive.
MB or MegaByte
A megabyte is approximately 1000KB. Technically, it is 1024KB (1024 x 1024).
Again, the technical value is of interest primarily to geeks. Most digital cameras
create images that are in the MB range. An 8 MP (megapixel) camera has 8 million
sensors, each representing a pixel or picture element. Each pixel, in turn uses
some numbers of bits to represent the various colors. A "true color" camera has
Number system is simply the ways to count things. Aim of any number system is
to deal with certain quantities which can be measured, monitored, recorded, manipulated
arithmetically, observed and utilized. Each quantity has to be represented by its value as
efficiently and accurately as is necessary for any application. The numerical value of a
quantity can be basically expressed in either analog (continuous) or digital (step by step)
method of representation. In analog method, a quantity is expressed by another quantity
which is proportional to the first. For example, the voltage output of an amplifier is
measured by a voltmeter.
We are most familiar with the decimal number system, because we use it every
day. It is the base-10 or radix-10 system. Note that there is no symbol for “10” or for the
base of any system. We count 1 2 3 4 5 6 7 8 9, and then insert a 0 in the first column
and add a new left column, starting at 1 again. Then we count 1-9 in the first column
again. (People use the base-10 system because we have 10 fingers!). Each column in
our system stands for a power of 10 starting at 100.
In the binary number system (base of 2), there are only two digits: 0 and 1 and the place
values are 20 , 21 , 22 , 23 etc. Binary digits are abbreviated as bits. For example, 1101
is a binary number of 4 bits (ie., it is a binary number containing four binary digits.)
A binary number may have any number of bits. Consider the number 11001.01 1.
Note the binary point (counterpart of decimal point in decimal number system) in this
number.
Each digit is known as a bit and can take only two values 0 and 1. The left most
bit is the highest-order bit and represents the most significant bit (MSB) while the lowest-
order bit is the least significant bit (LSB). Some useful definitions are:
Any number can be expressed in binary form in the usual way. Table 2.1 shows
expression of binary numbers.
2’s complement
The 2’s complement of a binary number is obtained adding 1 to the 1’s
complement of this number:
2’s complement = 1’s complement+1
Binary number 1 0 1 1 1 0 1 0
1’s complement 0 1 0 0 0 1 0 1
____________+ ____________1
2’s complement 0 1 0 0 0 1 1 0
There is a simple method to obtain the 2’s complement:
Beginning with the LSB, just write down bits as they are moving to left till the first
1, including it.
Substitute the rest of bits by their 1’s complement.
Signed numbers
Characteristics
Uses two digits, 0 and 1.
Also called base 2 number system
Each position in a binary number represents a 0 power of the base (2). Example:
20
Last position in a binary number represents an x power of the base (2). Example:
2x where x represents the last position - 1.
Binary number can be converted into its decimal equivalent, by simply adding the
weights of various positions in the binary number which have bit 1.
Steps:
Step 1 − Determine the column (positional) value of each digit (this depends on
the position of the digit and the base of the number system).
Step 2 − Multiply the obtained column values (in Step 1) by the digits in the
corresponding columns.
Step 3 − Sum the products calculated in Step 2. The total is the equivalent value
in decimal.
Example
Binary Number − 111012
Calculating Decimal Equivalent −
Example
Decimal Number: 2910
Calculating Binary Equivalent
Step 1 29 / 2 14 1
Step 2 14 / 2 7 0
Step 3 7/2 3 1
Step 4 3/2 1 1
Step 5 1/2 0 1
Step 1 21 / 2 10 1
Step 2 10 / 2 5 0
Step 3 5/2 2 1
Step 4 2/2 1 0
Step 5 1/2 0 1
Decimal to Octal
Decimal to octal conversion can be achieved by applying the repeated division
and remainder algorithm. Simply put, the decimal number is repeatedly divided by the
radix 8. In between these divisions, the remainders give the octal equivalent in reverse
order.
Here is how to convert decimal to octal step by step:
Step 1: If the given decimal number is less than 8, the octal equivalent is the same.
If the given number is greater than 7, divide the number by 8.
Step 2: Write down the remainder.
Step 3: Divide the part before the decimal point of your quotient by 8 again.
Step 4: Write down the remainder.
Step 5: Continue this process of dividing by 8 and noting the remainders until the
last decimal digit you are left with is less than 8.
Step 6: When the last decimal digit is less than 8, the quotient will be less than 0
and the remainder will be the digit itself.
Step 7: The last remainder you get will be the most significant digit of your octal
value while the first remainder from Step 3 is the least significant digit. Therefore,
when you write the remainders in reverse order - starting at the bottom with the
most significant digit and going to the top- you will reach the octal value of the
given decimal number.
Step 2 101012 28 58
Hex digit 1 0 2 3 4 5 6 7
Hex digit 8 9 A = 10 B = 11 C = 12 D = 13 E = 14 F = 15
= (1x27+1x26+1x25+1x24+0x23+0x22+0x21+1x20)10 or (3x82+6x81+1x80)10
= (241)10
For example, consider the conversion of 3C16, into its decimal equivalent:
3C16 = 0011 1100
= 1111002
Check the conversion.
3C16 = 3 X161 + C X160
= 3 x 161 + 12 x 160
= 48 + 12
= (60)10
1111002 = 25 +24 +23 +22
= 32+16+8+4
= (60)10
Thus, 3C16 = (111100)2 = 6010
Answer the following questions. Handwritten or encoded answers is accepted. It is highly recommended
to send your outputs in Edmodo class submission link. You can also send your output by private message
in messenger/email: [email protected]
Questions:
1. Discuss how computer or technology change your life?
2. Briefly differentiate hardware from software
3. Discuss how hardware and software work together.
4. Briefly explain the practical advantage and disadvantage of computer. Cite some examples.
Rubrics:
Instruction:
Convert each number to each desired number system. Show your solution.
313
11101010010100
7037
1AFB