Write a program that convert decimal number into standard floating point format.
SEEMMMMM
i)The implied decimal point is at the beginning of the mantissa.
ii)A"1" is used to represent positive number and a "9" is used to represent negatif number.
iii)Excess-50 notation is applied.
*用 C++ programming language 的
number是叫user key in然后做calculation的。
如:
Input Output
12345------>1 55 12345
123456------>1 56 12346
-12345------>9 55 12345
-123456------>9 56 12346
0.12345------->1 50 123456
0.0012345----->1 48 12345
15.12345------->1 52 15123
试试把PROGRAMMING CODE SHARE 出来吧!thanks.