-->

# CS101 Assignment No. 01 Fall 2016 - Introduction to Computing

### CS101 Assignment No 01 - Instructions

It should be clear that your assignment will not get any credit (zero marks) if:
The assignment is submitted after due date.
The submitted assignment is other than .doc or .docx file.
The submitted assignment does NOT open or file is corrupted.
The assignment is copied (from other student or ditto copy from handouts or internet).

For clarity and simplicity, you are required to Upload/Submit only .doc or .docx file.

### CS101 Assignment No. 01 - Objective

The objective of this assignment is:
To understand the practical implementation of decimal data conversion into binary data conversion.
To understand the basic concept of fundamentals gates and how to use it to solve a problem.

For any query about the assignment, contact at cs101@vu.edu.pk

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.

#### CS101 Assignment Question1:

Convert the numeric part of your student id into binary number system.
For example, if your student id is:
 B C 1 2 3 4 5 6 7 8 9

Remove the alphabetic data from your student id, the remaining id will be:
 1 2 3 4 5 6 7 8 9
Now the numeric portion of the student id “123456789” should be converted into binary number system.
Note: You must convert the numeric portion of your own student id. If any other number or other student id is converted, then zero marks will be awarded.

#### CS101 Assignment Question 2:

Complete the following truth table for the given logical expression.

U  V  W  U+V+W
0  0  0
0  0  1
0  1  0
0  1  1
1  0  0
1  0  1
1  1  0
1  1  1

### CS101 Assignment No. 01 Solution:

Tip: Check Lecture No.: 8 of  Handouts For Binary No. & Logical Operations. It will help you in solving the CS101 Assignment No. 01 Fall 2016 Assignment.

### CS101 Assignment Question no.2 Solution:

1. My 1st question solved :P
000100100000001000000001010100100111

2. 2 160403076
2 80201538 0
2 40100769 0
2 20050384 1
2 10025192 0
2 5012596 0
2 2506298 0
2 1253149 0
2 626574 1
2 313287 0
2 156643 1
2 78321 1
2 39160 1
2 19580 0
2 9790 0
2 4895 1
2 2447 1
2 1223 1
2 611 1
2 305 1
2 152 0
2 76 0
2 38 0
2 19 1
2 9 1
2 4 0
2 2 1
2 0

1001100011111000111010000100 = 1×2²⁷ + 0×2²⁶ + 0×2²⁵ + 1×2²⁴ + 1×2²³ + 0×2²² + 0×2²¹ + 0×2²⁰ + 1×2¹⁹ + 1×2¹⁸ + 1 ×2¹⁷ + 1×2¹⁶ + 1×2¹⁵ + 0×2¹⁴ + 0×2¹³ + 0×2¹² + + 1×2¹¹ + 1×2¹⁰ +1 ×2⁹ + 0×2⁸ + 1×2⁷ + 0×2⁶ + 0×2⁵ + 0×2⁴ + 0×2³ + 1×2² + 0×2¹ + 0×2⁰

= 34217728+16777216+8388608+524288+262144+131072+65536+32768+2048+1024+512+128+4
= 160403076 = (1001100011111000111010000100)2

3. bc160401142 plz as ko be convert kr do

1. 1001100011111000011011110110

Top