Course Code CC1 - LECTURE
Description Computer Fundamentals
Pre-Requisite None
Department: College of Computer Studies Week 6&7
Addition of Number System Module 4
LEARNING OUTCOMES
At the end of this module, you should able to:
1. Perform the indicated operations for each number system.
INTRODUCTION
Addition of Number System
After data have been represented inside the computer, the next thing the computer will do is to
process these data to generate meaningful and useful information for the user. Addition of
number system is a simple example how data are transformed based on the how the user would
like it to be generated.
COURSE CONTENT
General Rule in Addition
1. Arrange the digits in column.
2. Add the digits just like the usual addition of numbers(from right most column to the
left most column.
3. If the initial sum is less than the base (2 for binary, 8 for octal, 10 for decimal, and 16
for 16 for hexadecimal), simply write down the sum.
4. If the sum is greater than of equal to the base, divide the sum by the base, write
down the remainder and carry over the quotient to the next digit.
Example:
Decimal addition
341 + 72 + 9873 = ______
Arrange the digits in column and then add starting from the extreme right
341
+ 72
9873
6 since 6 is less than the base which is 10, we simply write down 6
341
+ 72
9873
6 since 6 is less than the base which is 10, we simply write down 6. Continue to the
next digit
341
+ 72
9873
6 since the next sum is 18, divide 18 by the base which is 10, write down the
Remainder 8, and carry over the quotient which is 1 to the next digit and continue
1 1 1 remainders
341
+ 72 12//110=1 r 2, 10/10=1 r 0
9873
10286
Binary Addition
The addition of binary number system is similar to that of decimal number system.
Decimal number system has digits ranging from 0-9 while under the binary number system,
the digits involve only 0 and 1. The same rule shall be applied.
Rule:
0+0=0
0+1=1
1+0=1
1 + 1 = 0 with a carry over of 1 to the next based on the general rule number 4.
Example:
11001 + 101 + 1111101 = __________
1 11 1 1
11001 3/2=1 r 1, 2/2=1 r 0 practice: 1100 + 11 + 10000=11111
+ 101
1111101
10 0 11011 is the initial sum is 3 and since binary has only 2 digits which is 0 and 1, 3 is
divided by the base which is 2, a quotient of 1 is carry over(red) to the next
digit and the remainder 1 is written down as answer.
Applying the rule you get,
1111111 1
11001
+ 101
1111101
10011011
Octal Addition
Example:
232 + 53 + 2331 = _____
232
+ 53
2331
6 is the initial sum since 6 is less than the base of octal which is 8
1
232
+ 53 11/8=1 r 3 practice: 6742 +23 + 5001= 13766
2331
2636 - 3 is the next sum because the original sum is 11 and octal number has digits from
0-7 only so 11 is divided by the base which is 8, carry over the quotient 1 to the
Next digit and write down the remainder 3 as the sum.
Hexadecimal Addition
AB 1
+ 98 7
2 22
A - 10 is the initial sum and since 10 is less than the base which is 16, simply write
Down the sum with the equivalent of A.
11
AB1
+ 98 7 21/16= 1 r 5, 22/16=1 r 6
2 22
16 5 A - the next sum will because initially, the total sum is 21 so you need to divide the
Sum by 16, the answer would be the remainder 5 and a carry over 1 to the next.
Binary Subtraction
Rule:
0–0=0
1–0=1
1- 1=0
0 – 1 = cannot be, you need to borrow 1 from the next digit to the left, the number
borrowed becomes 2
Example:
12 11
0 20222
1110100001
- 1 0 1 10 1 1 0 1
1000110100
FOCUS QUESTION/S
1. Can you perform conversion across number system?
LEARNING ACTIVITIES
Online activity 1 Perform the indicated operation.
Binary:
1. 111010 + 1101 + 1010101 =
2. 10111 + 11 + 100011 + 11111 =
Octal:
1. 742 + 563 + 62 =
2. 2267 +3456 + 321 + 21 =
Hexadecimal:
1. 59B2 2. B 0 B 0 3. 00
+ 3671 + CA +B0B0
84A7 BA? AC0
Binary Subtraction:
1. 110110 – 10111 =
2. 1110100000000101 – 1110101111 =
QUIZ # 4
PERFORM THE INDICATED OPERATIONS(2.5 points each):
1. 231428 + 243518 + 754318 = __________16
2. 100012 + FACE16 + CAFÉ16 = ________8
3. 1102 + 11012 + 11102 + 112 + 1100112 = ______10
4. 25310 + 102610 + ______10 = 173510
NOTE:
Please submit the summary of answers supported by solutions on our google classroom.
ASSIGNMENT
ASSESSMENT/EVALUATION
RELATED READINGS/REFERENCES
Any Fundamental to Computer books available
Prepared by: Noted by: Approved by:
DR. RITO A. CAMIGLA JR DR. RITO A. CAMIGLA JR DR. RITO A. CAMIGLA JR
Faculty Dean of Academics VP for Academics