Computer Fundamental and Programming: Prepared By: Mary Kris P. Morco Professorial Lecturer
Computer Fundamental and Programming: Prepared By: Mary Kris P. Morco Professorial Lecturer
Computer Fundamental and Programming: Prepared By: Mary Kris P. Morco Professorial Lecturer
Fundamental and
Programming
Prepared by: Mary Kris P. Morco
Professorial Lecturer
COMPUTER FUNDAMENTAL & BICOL UNIVERSITY COLLEGE OF SCIENCE
PROGRAMMING
Today's Agenda
Number Systems
PROGRAMMING
What is
number
system?
A number system is a system
number systems.
Definition of Number
Systems
A number system is defined as the representation of numbers by using digits or other symbols in a
consistent manner. The value of any digit in a number can be determined by a digit, its position in
the number, and the base of the number system. The numbers are represented in a unique manner
and allow us to operate arithmetic operations like addition, subtraction, and division.
COMPUTER FUNDAMENTAL & BICOL UNIVERSITY COLLEGE OF SCIENCE
PROGRAMMING
The digit
PROGRAMMING
Classification of Number
System
COMPUTER FUNDAMENTAL & BICOL UNIVERSITY COLLEGE OF SCIENCE
PROGRAMMING
Classification of Number
System
COMPUTER FUNDAMENTAL & BICOL UNIVERSITY COLLEGE OF SCIENCE
PROGRAMMING
Classification of Number
System
COMPUTER FUNDAMENTAL & BICOL UNIVERSITY COLLEGE OF SCIENCE
PROGRAMMING
Classification of Number
System
COMPUTER FUNDAMENTAL & BICOL UNIVERSITY COLLEGE OF SCIENCE
PROGRAMMING
What is a Number?
A number is a mathematical value used for counting or measuring or
a null value.
A number has many other variations such as even and odd numbers,
prime and composite numbers. Even and odd terms are used when a
differentiate between the numbers that have only two factors and more
In a number system, these numbers are used as digits. 0 and 1 are the
most common digits in the number system, that are used to represent
binary numbers. On the other hand, 0 to 9 digits are also used for other
number systems.
COMPUTER FUNDAMENTAL & BICOL UNIVERSITY COLLEGE OF SCIENCE
PROGRAMMING
Binary number system Octal number system Decimal number system Hexadecimal number
(Base - 2) (Base - 8) (Base - 10) system (Base - 16)
The octal number system uses
The binary number system uses The decimal number system uses The hexadecimal number system
eight digits: 0,1,2,3,4,5,6 and 7
only two digits: 0 and 1. The ten digits: 0,1,2,3,4,5,6,7,8 and 9 uses sixteen digits/alphabets:
with the base of 8. The advantage
numbers in this system have a with the base number as 10. The 0,1,2,3,4,5,6,7,8, 9 and A,B,C,D, E, F
of this system is that it has lesser
base of 2. Digits 0 and 1 are decimal number system is the with the base number as 16. Here,
digits when compared to several
called bits and 8 bits together system that we generally use to A-F of the hexadecimal system
other systems, hence, there would
make a byte. The data in represent numbers in real life. If means the numbers 10-15 of the
be fewer computational errors.
computers is stored in terms of any number is represented without decimal number system
Numbers like 8 and 9 are not
bits and bytes. The binary number a base, it means that its base is 10. respectively. This system is used in
included in the octal number
system does not deal with other computers to reduce the large-
system. Just as the binary, the
numbers such as 2,3,4,5 and so sized strings of the binary system.
octal number system is used in
on.
minicomputers but with digits from
0 to 7.
COMPUTER FUNDAMENTAL & BICOL UNIVERSITY COLLEGE OF SCIENCE
PROGRAMMING
What is a Binary Number System?
Binary Number System: According to digital electronics and mathematics, a binary number is
defined as a number that is expressed in the binary system or base 2 numeral system. It
describes numeric values by two separate symbols; 1 (one) and 0 (zero). The base-2 system is
The binary system is applied internally by almost all latest computers and computer-based
devices because of its direct implementation in electronic circuits using logic gates. Every digit
is referred to as a bit.
Examples are:
computers such as C, C++, Java, etc. use binary digits 0 and 1 to write a program or encode any
digital data. The computer understands only the coded language. Therefore these 2-digit
number system is used to represent a set of data or information in discrete bits of information.
Facts to Remember:
Binary numbers are made up of only 0’s and 1’s.
PROGRAMMING
PROGRAMMING
PROGRAMMING
PROGRAMMING
PROGRAMMING
PROGRAMMING
PROGRAMMING
PROGRAMMING
PROGRAMMING
What is a Octal Number System?
Octal Number System has a base of eight and uses the number from 0 to 7. The octal numbers,
in the number system, are usually represented by binary numbers when they are grouped in
pairs of three.
Octal
Number
System
COMPUTER FUNDAMENTAL & BICOL UNIVERSITY COLLEGE OF SCIENCE
PROGRAMMING
PROGRAMMING
PROGRAMMING
What is the Decimal Number System?
In the decimal number system, the numbers are represented with base 10. The way of denoting the
decimal numbers with base 10 is also termed as decimal notation. This number system is widely used in
computer applications. It is also called the base-10 number system which consists of 10 digits, such as,
0,1,2,3,4,5,6,7,8,9. Each digit in the decimal system has a position and every digit is ten times more
significant than the previous digit. Suppose, 25 is a decimal number, then 2 is ten times more than 5.
Decimal
Number
System
COMPUTER FUNDAMENTAL & BICOL UNIVERSITY COLLEGE OF SCIENCE
PROGRAMMING
PROGRAMMING
What is the Hexadecimal Number System?
The hexadecimal number system is a type of number system, that has a base value equal to 16. It is
also pronounced sometimes as ‘hex’ . Hexadecimal numbers are represented by only 16 symbols. These
Hexadecimal number systems can be converted to other number systems such as binary number (base-
Hexadeci
mal
Number
System
COMPUTER FUNDAMENTAL & BICOL UNIVERSITY COLLEGE OF SCIENCE
PROGRAMMING
PROGRAMMING
PROGRAMMING
Divide the decimal number Get the remainder from Divide the quotient of the Record the remainder from
to be converted by the Step 1 as the rightmost digit previous divide by the new Step 3 as the next digit (to
value of the new base. (least significant digit) of base. the left) of the new base
Step 3.
COMPUTER FUNDAMENTAL & BICOL UNIVERSITY COLLEGE OF SCIENCE
PROGRAMMING
COMPUTER FUNDAMENTAL & BICOL UNIVERSITY COLLEGE OF SCIENCE
PROGRAMMING
(positional) value of each column values (in Step 1) by calculated in Step 2. The
digit (this depends on the the digits in the total is the equivalent value
PROGRAMMING
COMPUTER FUNDAMENTAL & BICOL UNIVERSITY COLLEGE OF SCIENCE
PROGRAMMING
COMPUTER FUNDAMENTAL & BICOL UNIVERSITY COLLEGE OF SCIENCE
PROGRAMMING
COMPUTER FUNDAMENTAL & BICOL UNIVERSITY COLLEGE OF SCIENCE
PROGRAMMING
Step 1 Step 2
PROGRAMMING
COMPUTER FUNDAMENTAL & BICOL UNIVERSITY COLLEGE OF SCIENCE
PROGRAMMING
COMPUTER FUNDAMENTAL & BICOL UNIVERSITY COLLEGE OF SCIENCE
PROGRAMMING
Binary to Octal
and Vice Versa
COMPUTER FUNDAMENTAL & BICOL UNIVERSITY COLLEGE OF SCIENCE
PROGRAMMING
COMPUTER FUNDAMENTAL & BICOL UNIVERSITY COLLEGE OF SCIENCE
PROGRAMMING
Step 1 Step 2
PROGRAMMING
COMPUTER FUNDAMENTAL & BICOL UNIVERSITY COLLEGE OF SCIENCE
PROGRAMMING
Step 1 Step 2
conversion).
COMPUTER FUNDAMENTAL & BICOL UNIVERSITY COLLEGE OF SCIENCE
PROGRAMMING
COMPUTER FUNDAMENTAL & BICOL UNIVERSITY COLLEGE OF SCIENCE
PROGRAMMING
Binary to
Hexadecimal and
Vice Versa
COMPUTER FUNDAMENTAL & BICOL UNIVERSITY COLLEGE OF SCIENCE
PROGRAMMING
Step 1 Step 2
PROGRAMMING
COMPUTER FUNDAMENTAL & BICOL UNIVERSITY COLLEGE OF SCIENCE
PROGRAMMING
Step 1 Step 2
PROGRAMMING
COMPUTER FUNDAMENTAL & BICOL UNIVERSITY COLLEGE OF SCIENCE
PROGRAMMING