<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[CS302 Assignment 1 Solution and Discussion]]></title><description><![CDATA[<p dir="auto">Digital Logic Design (CS302)<br />
Assignment # 01</p>
<p dir="auto">Total marks = 20</p>
<p dir="auto">Deadline:01-06-2020</p>
<p dir="auto">Please carefully read the following instructions before attempting assignment.</p>
<p dir="auto">RULES FOR MARKING<br />
It should be clear that your assignment would not get any credit if:<br />
The assignment is submitted after the due date.<br />
The submitted assignment does not open or file is corrupt.<br />
Strict action will be taken if submitted solution is copied from any other student or from the internet.</p>
<p dir="auto">You should concern the recommended books to clarify your concepts as handouts are not sufficient.</p>
<p dir="auto">You are supposed to submit your assignment in .doc or docx format.<br />
Any other formats like scan images, PDF, zip, rar, ppt and bmp etc will not be accepted.</p>
<p dir="auto">Topic Covered:<br />
Number Systems<br />
Octal number<br />
BCD Numbers<br />
Lectures Covered<br />
Lecture 01- 06</p>
<p dir="auto">NOTE</p>
<p dir="auto">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.</p>
<p dir="auto">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.</p>
<p dir="auto">For any query, feel free to email at:<br />
<a href="mailto:cs302@vu.edu.pk" target="_blank" rel="noopener noreferrer nofollow ugc">cs302@vu.edu.pk</a></p>
<p dir="auto">Questions No 01 								                 Marks (05)</p>
<p dir="auto">Perform decimal to binary conversion on given decimal number using Sum-of-weights method. Verify the answer using repeated division method.</p>
<p dir="auto">Decimal Number=1050</p>
<p dir="auto">Questions No 02 								                 Marks (10)</p>
<p dir="auto">Perform the following arithmetic operations. For conversion you can use indirect method of conversion only.</p>
<p dir="auto">〖(E2BC3F)〗_16-(10110101000000011110001)_2+ (537476217)_8  =(________)_16<br />
Questions No 03 								                 Marks (05)</p>
<p dir="auto">Perform BCD addition between these two numbers. Kindly perform all the steps.<br />
46<br />
37</p>
]]></description><link>https://community.secnto.com//topic/1822/cs302-assignment-1-solution-and-discussion</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 23:22:54 GMT</lastBuildDate><atom:link href="https://community.secnto.com//topic/1822.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 03 Jun 2020 08:22:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CS302 Assignment 1 Solution and Discussion on Wed, 03 Jun 2020 08:39:26 GMT]]></title><description><![CDATA[<p dir="auto"><a href="/assets/uploads/files/1591173550402-cs302_1_sol_s20_cyberian.docx">Download CS302 Assignment Solution</a></p>
]]></description><link>https://community.secnto.com//post/5088</link><guid isPermaLink="true">https://community.secnto.com//post/5088</guid><dc:creator><![CDATA[zaasmi]]></dc:creator><pubDate>Wed, 03 Jun 2020 08:39:26 GMT</pubDate></item><item><title><![CDATA[Reply to CS302 Assignment 1 Solution and Discussion on Sat, 13 Jun 2020 13:51:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zaasmi" aria-label="Profile: zaasmi">@<bdi>zaasmi</bdi></a> said in <a href="/post/5085">CS302 Assignment 1 Solution and Discussion</a>:</p>
<blockquote>
<p dir="auto">Questions No 02 								                 Marks (10)<br />
Perform the following arithmetic operations. For conversion you can use indirect method of conversion only.<br />
〖(E2BC3F)〗_16-(10110101000000011110001)_2+ (537476217)_8  =(________)_16<br />
Questions No 03 								                 Marks (05)<br />
Perform BCD addition between these two numbers. Kindly perform all the steps.<br />
46<br />
37</p>
</blockquote>
<ul>
<li>(E2BC3F)_16  is already in Hexadecimal number system so there is no change required.</li>
<li>(10110101000000011110001)_2<br />
We must make 4-bit pairs as Hexadecimal number system uses 4-bits to represent a number.</li>
</ul>
<p dir="auto">0101 1010 1000 0000 1111 0001<br />
5 A 8 0 F 1</p>
<ul>
<li>Hence,(10110101000000011110001)_2=(5A80F1)_16<br />
(537476217)_8<br />
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.</li>
</ul>
<p dir="auto">(537476217)_8=(101 011 111 100 111 110 010 001 111)_2</p>
<p dir="auto">Again, as we use 4-bits to represent a Hexadecimal Number, we have to rearrange the stated Binary Number.</p>
<p dir="auto">(101 011 111 100 111 110 010 001 111)_2=(0101 0111 1110 0111 1100 1000 1111)_2<br />
=5 7 E 7 C 8 7<br />
(537476217)_8= (101 011 111 100 111 110 010 001 111)_2=(57E7C8F)_16</p>
<p dir="auto"><img src="https://i.imgur.com/UIkwU7J.png" alt="69f893a5-95c6-4dc0-af5e-6378af8b6822-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">By performing the stated arithmetic operations on given three Hexadecimal Number System, we will get the final Answer.</p>
<p dir="auto">〖(E2BC3F)〗_16-(10110101000000011110001)_2+ (537476217)_8  =(606B7DD)_16</p>
]]></description><link>https://community.secnto.com//post/5087</link><guid isPermaLink="true">https://community.secnto.com//post/5087</guid><dc:creator><![CDATA[zaasmi]]></dc:creator><pubDate>Sat, 13 Jun 2020 13:51:00 GMT</pubDate></item><item><title><![CDATA[Reply to CS302 Assignment 1 Solution and Discussion on Sat, 13 Jun 2020 13:45:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zaasmi" aria-label="Profile: zaasmi">@<bdi>zaasmi</bdi></a> said in <a href="/post/5085">CS302 Assignment 1 Solution and Discussion</a>:</p>
<blockquote>
<p dir="auto">Questions No 01 								                 Marks (05)<br />
Perform decimal to binary conversion on given decimal number using Sum-of-weights method. Verify the answer using repeated division method.<br />
Decimal Number=1050</p>
</blockquote>
<table class="table table-bordered table-striped">
<tbody>
<tr>
<td>Sum of Term</td>
<td>Highest Weight</td>
<td>Binary Number</td>
<td>Sum of Term – Highest Weight</td>
</tr>
<tr>
<td>1050</td>
<td>1024</td>
<td>10000000000</td>
<td>26=1050-1024</td>
</tr>
<tr>
<td>26</td>
<td>16</td>
<td>10000100000</td>
<td>10=26-16</td>
</tr>
<tr>
<td>10</td>
<td>8</td>
<td>10000011000</td>
<td>2=10-8</td>
</tr>
<tr>
<td>2</td>
<td>2</td>
<td>10000011010</td>
<td>0=2-2</td>
</tr>
</tbody>
</table>
<p dir="auto">Binary Equivalent= (10000011010)2<br />
Repeated Division Method:</p>
<table class="table table-bordered table-striped">
<tbody>
<tr>
<td>2</td>
<td>1050</td>
</tr>
<tr>
<td>2</td>
<td>525-0</td>
</tr>
<tr>
<td>2</td>
<td>262-1</td>
</tr>
<tr>
<td>2</td>
<td>131-0</td>
</tr>
<tr>
<td>2</td>
<td>65-1</td>
</tr>
<tr>
<td>2</td>
<td>32-1</td>
</tr>
<tr>
<td>2</td>
<td>16-0</td>
</tr>
<tr>
<td>2</td>
<td>8-0</td>
</tr>
<tr>
<td>2</td>
<td>4-0</td>
</tr>
<tr>
<td>2</td>
<td>2-0</td>
</tr>
<tr>
<td></td>
<td>1-0</td>
</tr>
</tbody>
</table>
]]></description><link>https://community.secnto.com//post/5086</link><guid isPermaLink="true">https://community.secnto.com//post/5086</guid><dc:creator><![CDATA[zaasmi]]></dc:creator><pubDate>Sat, 13 Jun 2020 13:45:57 GMT</pubDate></item></channel></rss>