You are on page 1of 2

Assignment no # 2

Name: Muhammad Bilal Courses:Bs computer science

Vu Id:bc190400305 subject:CS101

Campus Nowshera

Assignment 2 Solution Fall 2019

(Q1)Convert a decimal number 724 into its equivalent binary numbers. You are required to show
the complete steps of conversion and also write the final answer in its equivalent binary number.

Solution: Decimal number 724 into binary number:

2 724
2 362 0
2 181 0
2 90 1
2 45 1
2 22 1
2 11 0
2 5 1
2 2 1
2 1 0
0 1

Check
1×2⁰+0×2¹+1×2²+1×2³+0×2⁴+1×2⁵+1×2⁶+1×2⁷+0×2⁸×0×2⁹=724
(Q2)Complete the following truth table by using the stated Boolean logical operations.

Solution:

SOLUTIO
A B C A+B A.C (A+B)*C

0 0 0 0 0 1

0 0 1 0 0 0

0 1 0 1 0 1

0 1 1 1 0 1

1 0 0 1 0 1

1 0 1 1 1 0

1 1 0 1 0 1

1 1 1 1 1 0

You might also like