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 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:
Mantissa
Sign bit
• 3 bits for Exponent.
• 4 bits for Mantissa (the mantissa field needs to be in normalized form as discussed in the video lesson).
A. Encode the (negative) decimal fraction -9/2 to binary using the 8-bit floating-point notation.
Post a Comment