SOLVED CS101 Assignment 2 Solution and Discussion Spring2020

Re: CS101 Assignment 2 Solution and Discussion Fall2019
Introduction to Computing (CS101)
Assignment # 02
Spring 2020
Total marks = 20Deadline Date
16th June, 2020Please carefully read the following instructions before attempting assignment.
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 consult 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.Objective:
Objective of this assignment is to increase the learning capabilities of the students about
• To understand the conversion of numbers in to binary by using arithmetic operations.
• To understand the basic concept of logical operations and how to use it to solve a problem.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 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]Question # 01 10 marks
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.
i) Multiplication of 6 and 2
ii) Addition of 7 and 3
iii) Subtraction of 5 and 4Question # 02 10 marks
You have an image that can be represented in 8 bits. The image is given below:
(00110011)2
You are required to send this image to someone but not in original form. So, nobody can extract the features from the image.
So, we will perform following two operations on the image. Masking
You will apply an 8bit (10101011)2 mask using AND logic operation.  Inversion
You will invert the masked image using XOR logic operation.
 Masking

@cyberian which assaignment

@SidraJaveed said in CS101 Assignment 2 Solution and Discussion Spring2020:
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.
i) Multiplication of 6 and 2
ii) Addition of 7 and 3
iii) Subtraction of 5 and 4(ii) Addition of 7 and 3 solved out by the CPU.

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.
i) Multiplication of 6 and 2
ii) Addition of 7 and 3
iii) Subtraction of 5 and 4 
@DuaZahra said in CS101 Assignment 2 Solution and Discussion Spring2020:
plz send me full assaingnment cs101
@DuaZahra above posted assignment is full.😋😍😋

plz rply fast

plz send me full assaingnment cs101

@cyberian said in CS101 Assignment 2 Solution and Discussion Spring2020:
@ramla said in CS101 Assignment 2 Solution and Discussion Spring2020:
how did you perform inversion?
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.
الٹا تقویت بخش کارکردگی کا مظاہرہ کرنے کے لئے ، دونوں پیروں کے تلووں کے گرد مزاحمت کی نلیاں کا ٹکڑا رکھ کر شروع کریں۔ بیٹھو ، تاکہ پیر کسی میز یا کنارے کے کنارے بند ہوسکیں۔ ہم دائیں پیر سے شروع کریں گے۔ دائیں ٹانگ کے اوپر بائیں ٹانگ کو پار کریں۔

@ramla said in CS101 Assignment 2 Solution and Discussion Spring2020:
how did you perform inversion?
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.

@cyberian how did you perform inversion?

@AamirKhalid said in CS101 Assignment 2 Solution and Discussion Spring2020:
Inversion
You will invert the masked image using XOR logic operation. 
@AamirKhalid said in CS101 Assignment 2 Solution and Discussion Spring2020:
Masking
You will apply an 8bit (10101011)2 mask using AND logic operation.