CFP Module 2
CFP Module 2
CFP Module 2
I N T R O D U C T I O N T O
COMPUTER
FUNDAMENTALS
&
PROGRAMMING
FOR BS MECHANICAL ENGINEERING
s t
tee m
m s
s
err SSyy s
Nuum
m b
b e
N D a
attaa
& D
&
o n
nss
enntta
a tti
i o
eppr
r e
esse
RR e module 2
GAME TIME!!!
4 Pics and 1 Word
While taking up this module, you need to answer this game correctly. In every page, I will give you a
LETTER as a clue. At the end of the module, you will receive the final instruction.
NOTE: The correct answers are indicated below. (It is already arrange according to its correct formation.)
20/20
E-READER
HEADPHONES
The digit
The position of the digit in the number
The base of the number system (where the base is defined as the total number of digits available in
the number system)
Decimal Number System
Decimal number system is a base 10 number system having 10 digits from 0 to 9. This means that any
numerical quantity can be represented using these 10 digits. Decimal number system is also a
positional value system. This means that the value of digits will depend on its position. Let us take an
example to understand this.
The decimal number 1234 consists of the digit 4 in the units position, 3 in the tens position, 2 in the
hundreds position, and 1 in the thousands position. Its value can be written as
And decimal equivalent of this number is sum of product of each digit with its positional value.
Computer memory is measured in terms of how many bits it can store. Here is a chart for memory
capacity conversion.
--1 byte (B) = 8 bits
--1 Kilobytes (KB) = 1024 bytes
--1 Megabyte (MB) = 1024 KB
--1 Gigabyte (GB) = 1024 MB
--1 Terabyte (TB) = 1024 GB
--1 Exabyte (EB) = 1024 PB
--1 Zettabyte = 1024 EB
--1 Yottabyte (YB) = 1024 ZB
Decimal equivalent of any octal number is sum of product of each digit with its positional value.
Decimal equivalent of any hexadecimal number is sum of product of each digit with its positional value.
Example
Hexadecimal Number:
Calculating Decimal Equivalent −
O
ENGR. MARY JOY MANDANE - PAGE 6
There are many methods or techniques which can be used to convert numbers from one base to
another. In this chapter, we'll demonstrate the following −
Decimal to Other Base System
Other Base System to Decimal
Other Base System to Non-Decimal
Shortcut method - Binary to Octal
Shortcut method - Octal to Binary
Shortcut method - Binary to Hexadecimal
Shortcut method - Hexadecimal to Binary
Example
Decimal Number:
Calculating Binary Equivalent −
Example
Binary Number:
Calculating Decimal Equivalent −
Step 2 − Convert the decimal number so obtained to the new base number.
Example
Octal Number :
Calculating Binary Equivalent −
Step 1 - Convert to Decimal
R
ENGR. MARY JOY MANDANE - PAGE 8
Step 2 - Convert Decimal to Binary
ASCII
Besides numerical data, computer must be able to handle alphabets, punctuation marks, mathematical
operators, special symbols, etc. that form the complete character set of English language. The complete
set of characters or symbols are called alphanumeric codes. The complete alphanumeric code typically
includes −
26 upper case letters
26 lower case letters
10 digits
7 punctuation marks
A
20 to 40 special characters
DATA REPRESENTATION
E
ENGR. MARY JOY MANDANE - PAGE 12
• Numeric data consists of numbers that can be used in arithmetic operations.
• Digital devices represent numeric data using the binary number system, also called base 2.
• The binary number system only has two digits: 0 and 1.
• No numeral like 2 exists in the system, so the number “two” is represented in binary as 10
(pronounced “one zero”).
Representing Text
• Character data is composed of letters, symbols, and numerals that are not used in calculations.
• Examples of character data include your name, address, and hair color.
• Character data is commonly referred to as “text.”
• Digital devices employ several types of codes to represent character data, including ASCII, Unicode,
and their variants.
• ASCII (American Standard Code for Information Interchange, pronounced “ASK ee”) requires seven
bits for each character.
• The ASCII code for an uppercase A is 1000001.
• Extended ASCII is a superset of ASCII that uses eight bits for each character.
• For example, Extended ASCII represents the uppercase letter A as 01000001.
• Using eight bits instead of seven bits allows Extended ASCII to provide codes for 256 characters.
• Unicode (pronounced “YOU ni code”) uses sixteen bits and provides codes or 65,000 characters.
• This is a bonus for representing the alphabets of multiple languages.
• UTF-8 is a variable-length coding scheme that uses seven bits for common ASCII characters but uses
sixteen-bit Unicode as necessary.
• Plain, unformatted text is sometimes called ASCII text and is stored in a so-called text file with a name
ending in .txt.
• On Apple devices these files are labeled “Plain Text.” In Windows, these files are labeled “Text
Document”.
• ASCII text files contain no formatting.
• To create documents with styles and formats, formatting codes have to be embedded in the text.
• Microsoft Word produces formatted text and creates documents in DOCX format.
• Apple Pages produces documents in PAGES format.
• Adobe Acrobat produces documents in PDF format.
• HTML markup language used for Web pages produces documents in HTML format.
W
ENGR. MARY JOY MANDANE - PAGE 14
Bites and Bytes
• All of the data stored and transmitted by digital devices is encoded as bits.
• Terminology related to bits and bytes is extensively used to describe storage capacity and network
access speed.
• The word bit, an abbreviation for binary digit, can be further abbreviated as a lowercase b.
• A group of eight bits is called a byte and is usually abbreviated as an uppercase B.
• When reading about digital devices, you’ll frequently encounter references such as 90 kilobits per
second, 1.44 megabytes, 2.8 gigahertz, and 2 terabytes.
• Kilo, mega, giga, tera, and similar terms are used to quantify digital data.
K
ENGR. MARY JOY MANDANE - PAGE 15
• Use bits for data rates, such as Internet connection speeds, and movie download speeds.
• Use bytes for file sizes and storage capacities.
• 104 KB: Kilobyte (KB or Kbyte) is often used when referring to the size of small computer files.
• 56 Kbps: Kilobit (Kb or Kbit) can be used for slow data rates, such as a 56 Kbps (kilobits per second)
dial-up connection.
• 50 Mbps: Megabit (Mb or Mbit) is used for faster data rates, such as a 50 Mbps (megabits per second)
Internet connection.
• 3.2 MB: Megabyte (MB or MByte) is typically used when referring to the size of files containing
photos and videos.
• 100 Gbit: Gigabit (Gb or Gbit) is used for really fast network speeds.
• 16 GB: Gigabyte (GB or GByte) is commonly used to refer to storage capacity
Data Compression
• To reduce file size and transmission times, digital data can be compressed.
• Data compression refers to any technique that recodes the data in a file so that it contains fewer bits.
• Compression is commonly referred to as “zipping.”
• Compression techniques divided into two categories: lossless and lossy
• Lossless compression provides a way to compress data and reconstitute it into its original state
uncompressed data stays exactly the same as the original data
• Lossy compression throws away some of the original data during the compression process;
uncompressed data is not exactly the same as the original
• Software for compressing data is sometimes referred to as a compression utility or a zip tool.
• On laptops and desktop computers, the compression utility is accessed from the same screen used to
manage files.
M
ENGR. MARY JOY MANDANE - PAGE 16
• The process of reconstituting files is called extracting or unzipping.
• Compressed files may end with a .zip, .gz, pkg, or.tar.gz.
T
ENGR. MARY JOY MANDANE - PAGE 17
INDIVIDUAL OUTPUT 1
OUTPUT
INSTRUCTION:
1. Get your short coupon bond/yellow pad
2. At the upper of the paper, write this format:
If you get the correct answer, that is your last clue for your project!
Proceed to the next module to know your first project!