Welcome to FEARPK, your number one source for all things about education. We’re dedicated to providing you the very best of knowledge, with an emphasis on formal and non formal education.

Founded in  3, March 2019 by Rehmat Ullah, FEARPK has come a long way from its beginnings in Pakistan. When Rehmat ullah first started out, his passion for educational services  drove them to start their own business.

We hope you enjoy our educational knowledge as much as we enjoy offering them to you. If you have any questions or comments, please don’t hesitate to contact us.

# cs101 assignment 2 idea soloution 2020

 Introduction to Computing (CS101) Assignment # 02 Spring 2020 Total marks = 20                                                                                 Deadline Date 16th June, 2020

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.

1. Multiplication of 6 and 2

6*2=12

1 1

110   (6)

110   (6)

1100  (12)

1. Addition of 7 and 3

1 1 1

111   (7)

+11   (3)

1010  (10)

• Subtraction of 5 and 4

5+(-4)

0101

1100         (2’s complement of 4)

0001

Question # 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.