Spring 2023 - CS101 - 1
Spring 2023 - CS101 - 1
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.
You should consult the recommended books to clarify your concepts if video lessons/handouts
are not sufficient.
Objectives:
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.
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:
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.