Cc1 Module 4 Addition of Number System
Cc1 Module 4 Addition of Number System
Pre-Requisite None
Department: College of Computer Studies Week 6&7
Addition of Number System Module 4
LEARNING OUTCOMES
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
Example:
Decimal addition
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:
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.
1111111 1
11001
+ 101
1111101
10011011
Octal Addition
Example:
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
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
NOTE:
Please submit the summary of answers supported by solutions on our google classroom.
ASSIGNMENT
ASSESSMENT/EVALUATION
RELATED READINGS/REFERENCES