0% found this document useful (0 votes)
27 views2 pages

Marks: 19 Comment: 2's Omplement of Number Is Missing Comment: See The Solution File

The student solved two binary number problems: 1) Converted decimal numbers 320 and -122 to binary, performed the addition, then converted the binary sum back to decimal. The decimal sum was 198. 2) Filled in a truth table for the Boolean expression ( (A ⨁ B) ∧ D) ∨ C by mapping symbols to operators and evaluating for all combinations of input values.

Uploaded by

Sajidiqbal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views2 pages

Marks: 19 Comment: 2's Omplement of Number Is Missing Comment: See The Solution File

The student solved two binary number problems: 1) Converted decimal numbers 320 and -122 to binary, performed the addition, then converted the binary sum back to decimal. The decimal sum was 198. 2) Filled in a truth table for the Boolean expression ( (A ⨁ B) ∧ D) ∨ C by mapping symbols to operators and evaluating for all combinations of input values.

Uploaded by

Sajidiqbal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

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

You are required to perform the following stated operations in Binary


Number System (320)10 + (-122)10
Please first convert the stated Decimal Numbers into Binary Numbers.

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

Perform the Arithmetic operation on Binary Numbers.

= (320)10 + (-122)10
101000000
= (101000000)2 + (-1111010)2 −1111010
011000110
= (101000000)2 - (1111010)2

= (11000110)2

Convert the calculated answer back into Decimal Number System.


= (11000110)2

= (1×2)7 + (1×2)6 + (0×2)5 + (0×2)4 + (0×2)3 + (1×2)2 + (1×2)1+ (0×2)0

= 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 ¿

Symbol to operator mapping:


(⨁ = XOR)
(~ = NOT)
(∨ = OR)
(∧ = AND)

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

You might also like