CS520
Spring 2015
Laboratory 3
Monday February 9
The lab must be submitted prior to 8am on Tuesday February 10.
The tasks for this lab are:
- (60 points)
Write code to break out the three components of an input
to s2d: sign, exponent and fraction.
Insert debugging code to display these three components in hex to stderr.
- (40 points)
Write code to categorize an input to s2d as either
zero, infinity, NaN, denormalized value, or a "regular" normalized value.
Insert debugging code to display this categorization to stderr.
Turn in this laboratory, by typing:
% ~cs520/bin/submit lab3 s2d.c
Submissions can be checked by typing:
% ~cs520/bin/scheck lab3
Use #if C preprocessor commands to control whether
the debugging prints are enabled.
(See the Program 2 specification
for more information about how to do this.)
Leave the debugging prints enabled for your submission of this lab.
Remember that there are no late submissions of labs.
Submit what you have prior to 8am on Tuesday February 10.
Last modified on February 3, 2015.
Comments and questions should be directed to
hatcher@unh.edu