CS101 Assignment 1 Solution 2023

Please carefully read the following instructions before attempting the 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 the file is corrupt.
■ Strict action will be taken if the submitted solution is copied from any other student or the internet. ■You should consult the recommended books to clarify your concepts if video lessons/handouts are not sufficient.
■You are supposed to submit your assignment in Doc or Docx format.

Topic Covered: First 3 Weeks (Lesson no. 1 to 38) 

Objectives:
• To learn the conversion of decimal fractions to binary fractions. 
• To learn the Floating-point representation in computer system and how to represent binary fractions into floating-point notation. 

To download solution file Click on given download button.


CS101 Assignment 1 Solution Semester Fall 2023

CS101 Assignment 1 2023

Questions No. 01 Marks (20) 
As you know computer system stores all types of data as stream of binary digits (0 and 1). This also includes the numbed having fractional values, where placement of radix point is also incorporated along with the binary representation of the value. There are different approaches available in the literature to store the numbers having fractional part. One such method, called Floating-point notation is discussed in your week 03 lessons. The floating point representation need to incorporate three things: 

• Sign
• Mantissa
• Exponent

 In the video lessons, 8-bit storage is used to demonstrate the working of floating point notation with the help of examples where 8-bit storage is divided as: 

Bit positions
Mantissa
Exponent
Sign bit 


• 1 bit for Sign.
• 3 bits for Exponent.
• 4 bits for Mantissa (the mantissa field needs to be in normalized form as discussed in the video lesson). 

For the discussed 8-bit floating point storage:
A. Encode the (negative) decimal fraction -9/2 to binary using the 8-bit floating-point notation. 
B. Determine the smallest (lowest) negative value which can be incorporated/represented using the 8-bit floating point notation. 
C. Determine the largest (highest) positive value which can be incorporated/represented using the 8-bit floating point notation. 

Note: You need to follow the conventions (method) given in the video lessons for the solution of this question. Any other solution, not following the given convention, will be considered incorrect. 

Hint For the solution of B and C part, use the lowest or highest possible values (whichever applicable) for both mantissa and exponent part. 

To download the solution file click on given download button.


                                                        CS101 Assignment 1 Solution Semester Fall 2023

Post a Comment

Previous Post Next Post