Marks: 19 Comment: 2's Omplement of Number Is Missing Comment: See The Solution File
Marks: 19 Comment: 2's Omplement of Number Is Missing Comment: See The Solution File
Student ID:MC20020268
Assignment No: 1
Subject: CS101
Question: 1
320 122
2 160 0 2 61 0
2 80 0 2 30 1
2 40 0 2 15 0
2 20 0 2 7 1
2 10 0 2 3 1
2 5 0 2 1 1
2 2 1
2 1 0
The Binary for 320 is (101000000)2 The Binary for 122 is (1111010)2
= (320)10 + (-122)10
101000000
= (101000000)2 + (-1111010)2 −1111010
011000110
= (101000000)2 - (1111010)2
= (11000110)2
= 128 + 64 + 0 + 0 + 0 + 4 + 2 + 0
= 198
Question:2
For the following Boolean Expression, you are required to fill the stated table below:
( ( A ⨁ B)∧ D) ∨C ¿
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