0% found this document useful (0 votes)
41 views4 pages

CS302 Assignment No

This document provides the solution to assignment question 1 for CS302. It involves performing arithmetic operations between numbers in different bases (binary, octal, decimal, hexadecimal). The question asks to calculate (2F1AD)16 + (103589)10 + (767657)8 - (110010101010101011111)2. The solution shows all the step-by-step conversions between the different number bases to express each number in octal. It then performs the arithmetic and provides the final answer in octal, decimal, and hexadecimal: (-4157536)8 = (-1105758)10 = (-10DFSE)16.

Uploaded by

kiran
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)
41 views4 pages

CS302 Assignment No

This document provides the solution to assignment question 1 for CS302. It involves performing arithmetic operations between numbers in different bases (binary, octal, decimal, hexadecimal). The question asks to calculate (2F1AD)16 + (103589)10 + (767657)8 - (110010101010101011111)2. The solution shows all the step-by-step conversions between the different number bases to express each number in octal. It then performs the arithmetic and provides the final answer in octal, decimal, and hexadecimal: (-4157536)8 = (-1105758)10 = (-10DFSE)16.

Uploaded by

kiran
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/ 4

CS302 ASSIGNMENT NO.

1 SOLUTION
ID: BC200401884

Question No 01
Marks (10)
You are required to perform stated operations. You must consider the stated bases or number
system for your final answer. You can use indirect conversion or repeated division methods
only. Your solution must list down all the steps of calculations and conversions involved. In the
case of direct results, major marks will be deducted.

( 2 F 1 AD )16+ ( 103589 )10+ ( 767657 )8 −( 110010101010101011111 )2=()8=()16=()10

Solution:

Conversation of ( 2 F 1 AD )16 to Octal

( 2 F 1 AD )16

This is a decimal value not Octal, now we convert this value into Octal.

192941/8 24117-5
24117/8 3014-5
3014/8 376-6
376/8 47-0 ( 2 F 1 AD )16= ( 570655 )8
47/8 5-7
Conversation of ( 103589 )10 to Octal

103589/8 12948-5
12948/8 1618-4
1618/8 202-2
202/8 25-2
25/8 3-1
( 103589 )10= ( 312245 )8

Conversation of 110010101010101011111 into Octal

( 2 F 1 AD )16+ ( 103589 )10+ ( 767657 )8 −( 110010101010101011111 )2=()8=()16=()10

Now firstly we add ( 2 F 1 AD )16+ ( 103589 )10

1 1 1 1 1

5 7 0 6 5 5

+ 3 1 2 2 4 5

1 1 0 3 1 2 2

Now add this value in ( 767657 )8

1 1 1 1 1

1 1 0 3 1 2 2

+ 7 6 7 6 5 7
2 0 7 3 0 0 1

Now subtract this value by ( 110010101010101011111 )2

6 2 5 2 5 3 7

- 2 0 7 3 0 0 1

- 4 1 5 7 5 3 6

So, the answer is: (-4157536)8

Converting this Octal Number to Decimal:

Converting this into Hexadecimal:

1105758/16 69109-14

69109/16 4319-5

4319/16 269-15

269/16 16-13

16/16 1-0

(-10DFSE)16

The final Answer is


( 2 F 1 AD )16+ ( 103589 )10+ ( 767657 )8 −( 110010101010101011111 )2= (−4157536 )8 =(−10 DFSE )16 =(−1105758 )10

Question No 02
Marks (10)
Simplify the stated Boolean Expression using Boolean Algebra Laws. You must state the
properties of each simplification step.
( A B+C )∗D+ ( AC + A D )∗E+ ( B C+ D )∗E+ AB D+ BC E+ D
Solution:

You might also like