# SOLVED CS302 Assignment 1 Solution and Discussion

• Digital Logic Design (CS302)
Assignment # 01

Total marks = 20

RULES FOR MARKING
It should be clear that your assignment would not get any credit if:
The assignment is submitted after the due date.
The submitted assignment does not open or file is corrupt.
Strict action will be taken if submitted solution is copied from any other student or from the internet.

You should concern the recommended books to clarify your concepts as handouts are not sufficient.

You are supposed to submit your assignment in .doc or docx format.
Any other formats like scan images, PDF, zip, rar, ppt and bmp etc will not be accepted.

Topic Covered:
Number Systems
Octal number
BCD Numbers
Lectures Covered
Lecture 01- 06

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 assignment in the last hour of deadline. It is recommended to upload solution file at least two days before its closing date.

If you people find any mistake or confusion in assignment (Question statement), please consult with your instructor before the deadline. After the deadline no queries will be entertained in this regard.

For any query, feel free to email at:
[email protected]

Questions No 01 Marks (05)

Perform decimal to binary conversion on given decimal number using Sum-of-weights method. Verify the answer using repeated division method.

Decimal Number=1050

Questions No 02 Marks (10)

Perform the following arithmetic operations. For conversion you can use indirect method of conversion only.

〖(E2BC3F)〗_16-(10110101000000011110001)_2+ (537476217)_8 =(________)_16
Questions No 03 Marks (05)

Perform BCD addition between these two numbers. Kindly perform all the steps.
46
37

• Questions No 02 Marks (10)
Perform the following arithmetic operations. For conversion you can use indirect method of conversion only.
〖(E2BC3F)〗_16-(10110101000000011110001)_2+ (537476217)_8 =(________)_16
Questions No 03 Marks (05)
Perform BCD addition between these two numbers. Kindly perform all the steps.
46
37

• (E2BC3F)_16 is already in Hexadecimal number system so there is no change required.
• (10110101000000011110001)_2
We must make 4-bit pairs as Hexadecimal number system uses 4-bits to represent a number.

0101 1010 1000 0000 1111 0001
5 A 8 0 F 1

• Hence,(10110101000000011110001)_2=(5A80F1)_16
(537476217)_8
Now for an octal number, we must have to convert the octal number into a Binary Number System then convert that Binary Number to a Hexadecimal Number System.

(537476217)_8=(101 011 111 100 111 110 010 001 111)_2

Again, as we use 4-bits to represent a Hexadecimal Number, we have to rearrange the stated Binary Number.

(101 011 111 100 111 110 010 001 111)_2=(0101 0111 1110 0111 1100 1000 1111)_2
=5 7 E 7 C 8 7
(537476217)_8= (101 011 111 100 111 110 010 001 111)_2=(57E7C8F)_16 By performing the stated arithmetic operations on given three Hexadecimal Number System, we will get the final Answer.

〖(E2BC3F)〗_16-(10110101000000011110001)_2+ (537476217)_8 =(606B7DD)_16

• Questions No 01 Marks (05)
Perform decimal to binary conversion on given decimal number using Sum-of-weights method. Verify the answer using repeated division method.
Decimal Number=1050

 Sum of Term Highest Weight Binary Number Sum of Term – Highest Weight 1050 1024 10000000000 26=1050-1024 26 16 10000100000 10=26-16 10 8 10000011000 2=10-8 2 2 10000011010 0=2-2

Binary Equivalent= (10000011010)2
Repeated Division Method:

 2 1050 2 525-0 2 262-1 2 131-0 2 65-1 2 32-1 2 16-0 2 8-0 2 4-0 2 2-0 1-0  5

2

2

5

9

3

3
• ## UNSOLVEDCS302 GDB1 Solution and discussion CS302 - Digital Logic Design • cs302 gdb 1 solution discussion fall 2020 • • Huzaifa Asif

1  | |