<?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[CS101 Assignment 2 Solution and Discussion Spring2020]]></title><description><![CDATA[<p dir="auto">Re: <a href="/topic/697/cs101-assignment-2-solution-and-discussion-fall-2019">CS101 Assignment 2 Solution and Discussion Fall-2019</a></p>
<p dir="auto">Introduction to Computing (CS101)<br />
Assignment # 02<br />
Spring 2020	<br />
Total marks = 20</p>
<p dir="auto">Deadline Date<br />
16th June, 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 consult 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">Objective:</p>
<p dir="auto">Objective of this assignment is to increase the learning capabilities of the students about</p>
<p dir="auto">•	To understand the conversion of numbers in to binary by using arithmetic operations.<br />
•	To understand the basic concept of logical operations and how to use it to solve a problem.</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 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:cs101@vu.edu.pk" target="_blank" rel="noopener noreferrer nofollow ugc">cs101@vu.edu.pk</a></p>
<p dir="auto">Question # 01  							                   10 marks</p>
<p dir="auto">In CPU all the arithmetic operations are performed in binary numbers (0 and 1). Suppose you have a small CPU which is designed to perform all arithmetic operations using addition only. You will explain how the following operations will be solved out by the CPU.<br />
i)	Multiplication of 6 and 2<br />
ii)	Addition of 7 and 3<br />
iii)	Subtraction of 5 and 4</p>
<p dir="auto">Question # 02 							                   10 marks</p>
<p dir="auto">You have an image that can be represented in 8 bits. The image is given below:<br />
(00110011)2<br />
You are required to send this image to someone but not in original form. So, nobody can extract the features from the image.<br />
So, we will perform following two operations on the image.</p>
<ol>
<li>Masking<br />
You will apply an 8-bit (10101011)2 mask using AND logic operation.</li>
<li>Inversion<br />
You will invert the masked image using XOR logic operation.</li>
</ol>
]]></description><link>https://community.secnto.com//topic/1872/cs101-assignment-2-solution-and-discussion-spring2020</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 01:18:54 GMT</lastBuildDate><atom:link href="https://community.secnto.com//topic/1872.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 10 Jun 2020 09:45:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CS101 Assignment 2 Solution and Discussion Spring2020 on Sun, 21 Jun 2020 07:53:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cyberian" aria-label="Profile: cyberian">@<bdi>cyberian</bdi></a> which assaignment</p>
]]></description><link>https://community.secnto.com//post/5503</link><guid isPermaLink="true">https://community.secnto.com//post/5503</guid><dc:creator><![CDATA[Dua Zahra]]></dc:creator><pubDate>Sun, 21 Jun 2020 07:53:20 GMT</pubDate></item><item><title><![CDATA[Reply to CS101 Assignment 2 Solution and Discussion Spring2020 on Tue, 16 Jun 2020 19:17:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sidra-javeed" aria-label="Profile: Sidra-Javeed">@<bdi>Sidra-Javeed</bdi></a> said in <a href="/post/5425">CS101 Assignment 2 Solution and Discussion Spring2020</a>:</p>
<blockquote>
<p dir="auto">In CPU all the arithmetic operations are performed in binary numbers (0 and 1). Suppose you have a small CPU which is designed to perform all arithmetic operations using addition only. You will explain how the following operations will be solved out by the CPU.<br />
i) Multiplication of 6 and 2<br />
ii) Addition of 7 and 3<br />
iii) Subtraction of 5 and 4</p>
</blockquote>
<p dir="auto">(ii)  Addition of 7 and 3 solved out by the CPU.</p>
]]></description><link>https://community.secnto.com//post/5426</link><guid isPermaLink="true">https://community.secnto.com//post/5426</guid><dc:creator><![CDATA[cyberian]]></dc:creator><pubDate>Tue, 16 Jun 2020 19:17:17 GMT</pubDate></item><item><title><![CDATA[Reply to CS101 Assignment 2 Solution and Discussion Spring2020 on Tue, 16 Jun 2020 18:27:59 GMT]]></title><description><![CDATA[<p dir="auto">In CPU all the arithmetic operations are performed in binary numbers (0 and 1). Suppose you have a small CPU which is designed to perform all arithmetic operations using addition only. You will explain how the following operations will be solved out by the CPU.<br />
i) Multiplication of 6 and 2<br />
ii) Addition of 7 and 3<br />
iii) Subtraction of 5 and 4</p>
]]></description><link>https://community.secnto.com//post/5425</link><guid isPermaLink="true">https://community.secnto.com//post/5425</guid><dc:creator><![CDATA[Sidra Javeed]]></dc:creator><pubDate>Tue, 16 Jun 2020 18:27:59 GMT</pubDate></item><item><title><![CDATA[Reply to CS101 Assignment 2 Solution and Discussion Spring2020 on Tue, 16 Jun 2020 04:06:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dua-zahra" aria-label="Profile: Dua-Zahra">@<bdi>Dua-Zahra</bdi></a> said in <a href="/post/5412">CS101 Assignment 2 Solution and Discussion Spring2020</a>:</p>
<blockquote>
<p dir="auto">plz send me full assaingnment cs101</p>
</blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dua-zahra" aria-label="Profile: Dua-Zahra">@<bdi>Dua-Zahra</bdi></a> above posted assignment is full.😋😍😋</p>
]]></description><link>https://community.secnto.com//post/5413</link><guid isPermaLink="true">https://community.secnto.com//post/5413</guid><dc:creator><![CDATA[cyberian]]></dc:creator><pubDate>Tue, 16 Jun 2020 04:06:58 GMT</pubDate></item><item><title><![CDATA[Reply to CS101 Assignment 2 Solution and Discussion Spring2020 on Mon, 15 Jun 2020 19:57:11 GMT]]></title><description><![CDATA[<p dir="auto">plz rply fast</p>
]]></description><link>https://community.secnto.com//post/5411</link><guid isPermaLink="true">https://community.secnto.com//post/5411</guid><dc:creator><![CDATA[Dua Zahra]]></dc:creator><pubDate>Mon, 15 Jun 2020 19:57:11 GMT</pubDate></item><item><title><![CDATA[Reply to CS101 Assignment 2 Solution and Discussion Spring2020 on Mon, 15 Jun 2020 19:54:19 GMT]]></title><description><![CDATA[<p dir="auto">plz send me full assaingnment cs101</p>
]]></description><link>https://community.secnto.com//post/5412</link><guid isPermaLink="true">https://community.secnto.com//post/5412</guid><dc:creator><![CDATA[Dua Zahra]]></dc:creator><pubDate>Mon, 15 Jun 2020 19:54:19 GMT</pubDate></item><item><title><![CDATA[Reply to CS101 Assignment 2 Solution and Discussion Spring2020 on Sun, 14 Jun 2020 13:44:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cyberian" aria-label="Profile: cyberian">@<bdi>cyberian</bdi></a> said in <a href="/post/5345">CS101 Assignment 2 Solution and Discussion Spring2020</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ramla" aria-label="Profile: ramla">@<bdi>ramla</bdi></a> said in <a href="/post/5343">CS101 Assignment 2 Solution and Discussion Spring2020</a>:</p>
<blockquote>
<p dir="auto">how did you perform inversion?</p>
</blockquote>
<p dir="auto">To perform inversion strengthening, start by placing a piece of resistance tubing around the soles of both feet. Sit, so that the feet hang off the edge of a table or edge. We will start with the right foot. Cross the left leg over the right leg.</p>
</blockquote>
<p dir="auto">الٹا تقویت بخش کارکردگی کا مظاہرہ کرنے کے لئے ، دونوں پیروں کے تلووں کے گرد مزاحمت کی نلیاں کا ٹکڑا رکھ کر شروع کریں۔  بیٹھو ، تاکہ پیر کسی میز یا کنارے کے کنارے بند ہوسکیں۔  ہم دائیں پیر سے شروع کریں گے۔  دائیں ٹانگ کے اوپر بائیں ٹانگ کو پار کریں۔</p>
]]></description><link>https://community.secnto.com//post/5346</link><guid isPermaLink="true">https://community.secnto.com//post/5346</guid><dc:creator><![CDATA[cyberian]]></dc:creator><pubDate>Sun, 14 Jun 2020 13:44:01 GMT</pubDate></item><item><title><![CDATA[Reply to CS101 Assignment 2 Solution and Discussion Spring2020 on Sun, 14 Jun 2020 13:42:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ramla" aria-label="Profile: ramla">@<bdi>ramla</bdi></a> said in <a href="/post/5343">CS101 Assignment 2 Solution and Discussion Spring2020</a>:</p>
<blockquote>
<p dir="auto">how did you perform inversion?</p>
</blockquote>
<p dir="auto">To perform inversion strengthening, start by placing a piece of resistance tubing around the soles of both feet. Sit, so that the feet hang off the edge of a table or edge. We will start with the right foot. Cross the left leg over the right leg.</p>
]]></description><link>https://community.secnto.com//post/5345</link><guid isPermaLink="true">https://community.secnto.com//post/5345</guid><dc:creator><![CDATA[cyberian]]></dc:creator><pubDate>Sun, 14 Jun 2020 13:42:40 GMT</pubDate></item><item><title><![CDATA[Reply to CS101 Assignment 2 Solution and Discussion Spring2020 on Sun, 14 Jun 2020 11:41:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cyberian" aria-label="Profile: cyberian">@<bdi>cyberian</bdi></a> how did you perform inversion?</p>
]]></description><link>https://community.secnto.com//post/5343</link><guid isPermaLink="true">https://community.secnto.com//post/5343</guid><dc:creator><![CDATA[ramla]]></dc:creator><pubDate>Sun, 14 Jun 2020 11:41:49 GMT</pubDate></item><item><title><![CDATA[Reply to CS101 Assignment 2 Solution and Discussion Spring2020 on Thu, 11 Jun 2020 20:59:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aamir-khalid" aria-label="Profile: Aamir-Khalid">@<bdi>Aamir-Khalid</bdi></a> said in <a href="/post/5231">CS101 Assignment 2 Solution and Discussion Spring2020</a>:</p>
<blockquote>
<p dir="auto">Inversion<br />
You will invert the masked image using XOR logic operation.</p>
</blockquote>
<p dir="auto"><img src="https://i.imgur.com/W1zyTSw.jpg" alt="20200612_015719.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.secnto.com//post/5261</link><guid isPermaLink="true">https://community.secnto.com//post/5261</guid><dc:creator><![CDATA[cyberian]]></dc:creator><pubDate>Thu, 11 Jun 2020 20:59:11 GMT</pubDate></item><item><title><![CDATA[Reply to CS101 Assignment 2 Solution and Discussion Spring2020 on Thu, 11 Jun 2020 20:58:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aamir-khalid" aria-label="Profile: Aamir-Khalid">@<bdi>Aamir-Khalid</bdi></a> said in <a href="/post/5231">CS101 Assignment 2 Solution and Discussion Spring2020</a>:</p>
<blockquote>
<p dir="auto">Masking<br />
You will apply an 8-bit (10101011)2 mask using AND logic operation.</p>
</blockquote>
<p dir="auto"><img src="https://i.imgur.com/etWEAwp.jpg" alt="20200612_015535.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.secnto.com//post/5260</link><guid isPermaLink="true">https://community.secnto.com//post/5260</guid><dc:creator><![CDATA[cyberian]]></dc:creator><pubDate>Thu, 11 Jun 2020 20:58:39 GMT</pubDate></item></channel></rss>