是这样.....如果运行完程式会得出a) New yenConverter with exchange rate = 115.7 commission rate =0.0005(为什么出不到o.ooo5????) a) New euroConverter with exchange rate = 0.9927, commission rate =0.0003 b) largeAmount = 50000(只能懂得做到a)b)....)但题目要求加上c) 1500000 yens = US$ 12958.0812445981 d) US$ 2000 = 231284.30000000002 yens e) New euro exchange rate = 0.98811500000是foreignMoney(我想要自己设)
题目 c) Use the yenConverter to convert 1500000 yens to US dollars. d) Use the yenConverter to convert from US$ 2000 to yens. e) Set the exchange rate of euro to 0.9881.class: http://codepad.org/0ZwLyOzB (主程式): http://codepad.org/FjDjpJgb
是这样.....如果运行完程式会得出a) New yenConverter with exchange rate = 115.7 commission rate =0.0005(为什么出不到o.ooo5????)
a) New euroConverter with exchange rate = 0.9927, commission rate =0.0003
b) largeAmount = 50000(只能懂得做到a)b)....)但题目要求加上c) 1500000 yens = US$ 12958.0812445981
d) US$ 2000 = 231284.30000000002 yens
e) New euro exchange rate = 0.98811500000是foreignMoney(我想要自己设)
题目
c) Use the yenConverter to convert 1500000 yens to US dollars.
d) Use the yenConverter to convert from US$ 2000 to yens.
e) Set the exchange rate of euro to 0.9881.class: http://codepad.org/0ZwLyOzB
(主程式): http://codepad.org/FjDjpJgb
http://codepad.org/0ZwLyOzB这个里面的代码我看得懂,不过楼主没有告诉我你怎么调用的这个类,要求输出的结果又是什么。
http://codepad.org/FjDjpJgb这个里面的代码传入的参数不是10进制的,我看不懂,什么也不说......