|
|
c m s c 311
s u m m e r 2 0 0 2 |
Thanks to B. Dunavant for pointing out these issues in the specs.
~ch1101/submit p0.tar 0Note: your output should match the output by using diff -bwi on your output and the primary output. If the only difference is blank lines, you should be able to submit fine.
convert 0.375_10 2where the first number always has a decimal point and digits before and after the decimal point. This part is extra credit. Mostly going to check base 10 to base 2, but if you want to try to get it working from base 10 to other bases (and then from other bases to other bases), you can do so.
However, don't get too carried away, unless you feel you have the time.
0x0A 0b1100 037as inputs, the format for binary when read in, is not the same as the format when printed out. However, for hex and octal, the format is the same.
However, when printed as output, leave off the base subscript.
Thus, if the source is 111_2 and the base is 10, then
print:
Base 2: 111
Base 10: 5
You do not need to make the colons align, although it will be
easier to read, if you do.
|
See the class syllabus for policies concerning email Last Modified: Wed Jun 5 10:38:37 EDT 2002 |
|
|
|
|
|