CS101 Assignment 1 Solution Fall 2021 - VU Answer

CS101 Assignment No 1 Solution Fall 2021

Provide Current CS101 Assignment 1 Solution Fall 2021. Easy to See Proper Step by Step CS101 Assignment 1 Solution 2021 Download PDF File Below.


CS101 ASSIGNMENT 1 SOLUTION FALL 2021 

Provide by VU Answer


Total Marks: 20 

Due Date: 14 Dec 2021


Uploading Assignment Instruction:

Submit assignment only .doc or .docx format.


Objectives:


1. To understand the practical implementation of the Number System and learn how to convert numbers from decimal to binary or binary to decimal.


2. To understand the concept of Addition in binary Boolean Logical Operations.


3. To understand the basic concept of Boolean Logical Operations.


Question 1:

Hint: Use the following 8-bit floating-point notation to convert these values.



Part A:

Encode the following decimal fractional value to binary floating-point notation using the 8-bit floating-point format.

-3.5


Solution:

The number is negative so sign bit notation is 1. o First convert 3.5 into a Binary of 3.5


2

3



0.5 * 2 =

1

1


1

1







1



11







3.5 = 011.1

Mantissa field: 0111 radix in .0111 must be moved 3-bit to the right to obtain 011.1 So exponent is positive 3 

The final 8-bit floating-point notation is


1

1

1

1

0

1

1

1


3.5 decimal fractional value is using 8-bit floating-point notation is -11110111



Part B:

Decode the following 8-bit floating point binary value to decimal fractional value.

00101100


Solution:

The mantissa is: .1100


Exponent: 010 It is in 3-bit excess notation-4

-2 Exponent is negative so shift radix (.1100) left.


001100 Convert it into decimal fractional value .001100 is equal to .0011.


.

2-1

2-2

2-3

2-4

.

½

¼

1/8

1/6

.

0

0

1

1


0 + 0 + 1/8 + 1/6

=0.1875 


Question 2:

Perform the binary addition on the following decimal numbers:

4638 and 9278


Solution:


Convert into binary


4638=101110.0110


9278=1011100.1110


Perform addition


1+0=1

1+1=0 (1 carry)

1+1+1=1(1 carry)

0+1=1



1

0

1

1

1

0

0

.

0

1

1

0


0

1

0

1

1

1

0

.

1

1

1

0

+












+

1

0

0

0

1

0

1

1

.

0

1

0

0


=10001011.0100

Question 3:

The logical operations (AND, OR, NOT, and XOR etc.) discussed in the video lessons can be combined to perform some specific operations. Two such operations (circuits) are depicted in the first column “Circuits” of the following table. You are required to determine the output of each of the following circuits for the input values given in column 2 and column 3.


Solution:



Circuits

What would be the output when the upper input is 1 and the lower input is 0?

What would be the output when upper input is 0 and the lower input is 1?



INPUTS

                                 OUTPUT                                                                                


Output   0


Output 0

INPUT OUTPUT


Output 0


Output 1



CS101 Assignment NO 1 Solution 2021 Download



Check Also:


CS101 Midterm Past Papers Solved


CS101 Solved Midterm Papers by Moaaz


CS101 Short Notes Midterm and Final term

Updated CS101 Handouts PDF


CS101 Quiz 1 Solved Answer


PLEASE NOTE:

Don't copy-paste the same answer.

Make sure you can make some changes to your solution file before submitting copy-paste solution will be marked zero.

If you found any mistake then correct yourself and inform me.

Before submitting an assignment check your assignment requirement file.


Post a Comment

0 Comments