Introduction To Computing (CS101) : Assignment # 01 Fall 2020
Introduction To Computing (CS101) : Assignment # 01 Fall 2020
(CS101)
Assignment # 01 30 November 2020
Fall 2020
Please carefully read the following instructions before attempting the assignment.
You should consult the recommended books to clarify your concepts as handouts are not
sufficient.
Objectives:
• To understand the practical implementation of the Number System.
• To understand the basic concept of Boolean Logical Operations and how to use it
to solve a problem.
NOTE
No assignment will be accepted after the due date via email in any case (whether it is the
case of load shedding or internet malfunctioning etc.). Hence refrain from uploading
assignments in the last hour of the deadline. It is recommended to upload the solution file
at least two days before its closing date.
If you find any mistake or confusion in the assignment (Question statement), please
consult with your instructor before the deadline. After the deadline, no queries will be
entertained in this regard.
Convert the following decimal numbers into equivalent binary numbers and then convert the
binary answer back into equivalent decimal. Show all the steps of conversions.
• 4789
2 4789
2 2394 - 1
2 1197 - 0
2 598 - 1
2 299 - 0
2 149 - 1
2 74 - 1
2 37 - 0
2 18 - 1
2 9 - 0
2 4 - 1
2 2 - 0
2 1 - 0
(4789)10 = (1001010110101)2
Original Binary 0 0 1 0 0 0 1 0 0 0 0 1 1 1 1 1
Number
1’s Complement 1 1 0 1 1 1 0 1 1 1 1 0 0 0 0 0
Adding 1 1
2’s Complement 1 1 0 1 1 1 0 1 1 1 1 0 0 0 0 1
(0010001000011111)2 = (8735)10
(𝑨 ⊕ 𝑫)
.
̅ +𝑪
(𝑩 ̅) (𝑨 ⊕ 𝑫) (𝑨 + 𝑩)
A B C D 𝑨⊕𝑫 𝑨+𝑩 ̅ +𝑪
(𝑩 ̅) (𝑩 + 𝑪 + 𝑫) ⊕ . .
(𝑩 + 𝑪 + 𝑫) (𝑨 + 𝑩) ̅ ̅)
((𝑩 + 𝑪
⊕
(𝑩 + 𝑪 + 𝑫))
0 0 0 0 0 0 1 0 1 0 0
0 0 0 1 1 0 1 1 0 0 0
0 0 1 0 0 0 1 1 0 0 0
0 0 1 1 1 0 1 1 0 0 0
0 1 0 0 0 1 1 1 0 0 0
0 1 0 1 1 1 1 1 0 1 0
0 1 1 0 0 1 0 1 1 0 0
0 1 1 1 1 1 0 1 1 1 1
1 0 0 0 1 1 1 0 1 1 1
1 0 0 1 0 1 1 1 0 0 0
1 0 1 0 1 1 1 1 0 1 0
1 0 1 1 0 1 1 1 0 0 0
1 1 0 0 1 1 1 1 0 1 0
1 1 0 1 0 1 1 1 0 0 0
1 1 1 0 1 1 0 1 1 1 1
1 1 1 1 0 1 0 1 1 0 0