Professional Documents
Culture Documents
mc200203361
Introduction to Computing (CS101)
Assignment # 01
Questions No 11
You are required to perform the following stated operations in Binary Number System
(320)10 + (-122)10
o Please first convert the stated Decimal Numbers into Binary Numbers.
o Perform the Arithmetic operation on Binary Numbers.
o Convert the calculated answer back into Decimal Numbers.
SOLUTION:
10000101
+ 1
10000110
Hence ,
(-122)10 = (10000110)2
b) Perform the Arithmetic operation on Binary Numbers.
(11000110)2 = 1×27+1×26+0×25+0×24+0×23+1×22+1×21+0×20
= 1×128×1 × 64× 0 ×32+0×16+0×8+1×4+1×2+0×1
=128+64+0+0+0+4+2+0
= 198
(11000110)2 = (198)10
Questions No 02
For the following Boolean Expression, you are required to fill the stated table below:
( ( A ⨁ B)∧ D) ∨C ¿
SOLUTION:
A B C D ( A ⨁ B) ( A ⨁ B) ( ( A ⨁ B)∧ D) ( ( A ⨁ B)∧ D) ∨C ¿
0 0 0 0 0 1 0 0
0 0 0 1 0 1 1 1
0 0 1 0 0 1 0 1
0 0 1 1 0 1 1 1
0 1 0 0 1 0 0 0
0 1 0 1 1 0 0 0
0 1 1 0 1 0 0 1
0 1 1 1 1 0 0 1
1 0 0 0 1 0 0 0