0% found this document useful (0 votes)
75 views

Spring 2023 - CS101 - 1

This document provides instructions for Assignment No. 01 for the course CS101 Introduction to Computing. It details that the assignment is due on May 23, 2023 and outlines rules for marking including submitting assignments in the correct format by the deadline. It also provides objectives and topics covered in the first 3 weeks of lessons. The assignment contains 1 question worth 20 marks related to representing decimal fractions using 8-bit floating point notation including encoding -9/2 and determining the smallest and largest representable negative and positive values.

Uploaded by

Muhammad Zeeshan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
75 views

Spring 2023 - CS101 - 1

This document provides instructions for Assignment No. 01 for the course CS101 Introduction to Computing. It details that the assignment is due on May 23, 2023 and outlines rules for marking including submitting assignments in the correct format by the deadline. It also provides objectives and topics covered in the first 3 weeks of lessons. The assignment contains 1 question worth 20 marks related to representing decimal fractions using 8-bit floating point notation including encoding -9/2 and determining the smallest and largest representable negative and positive values.

Uploaded by

Muhammad Zeeshan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Total marks = 20

Introduction To Computing
(CS101) Deadline
Assignment No. 01 rd
23 of May, 2023
Spring 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.


Any other formats like scan images, PDF, ZIP, RAR, PPT, BMP, TXT, etc. will not be accepted.

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.

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 assignments
in the last hour of the deadline. It is recommended to upload the solution file at least two days
before its closing date.

If you people find any mistake or confusion in the assignment (Question statement), please
consult with your instructor before the deadline. After the deadline, no queries will be
entertained in this regard.

For any query, feel free to email me at:


[email protected]
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 numbers 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:

 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.

You might also like