几个java题

来源:百度知道 编辑:UC知道 时间:2024/06/01 19:48:21
不好意思以下题目由于时间太迟了没翻译明天有时间的就帮忙下谢谢虽然是自己的题目但是不会做。。。。给各提醒也万分感谢。
create an AddCoins application that prompts the user for the number of pennies, nickels, dimes, and quarters, and then displays their total dollar amount. the AddCoins application should include a getDollarAmount() methnod that has four int parameters corresponding to the number of pennies(1分), nickels(5分), dimes(10分), and quarters(25分), and returns a Sting that corresponding to the dollar value of the coins. Note that the string returned should include the currency sign($). Application output shoud look similar to:
Enter your total coins:
Quarters:3
Dimes:2
Nickels:1
Pennies:8
Total:$1.08
没注意到发错频道了。。。

这个你不应该放到这个分类来……到计算机分类不去问吧……一定要用java?
翻译是可以帮你翻译的。大致意思是说编一个程序,让这个程序输入的是多少多少钱,输出的是想最后五行这样格式的,说要用多少多少25分币、多少10分币、多少5分、多少一分,然后总额是多少