POJ1004--FinancialManagement( 财务管理)翻译


FinancialManagement

TimeLimit:1000MS        Memory Limit:10000K

TotalSubmissions:157065          Accepted:60269


Description

Larry graduated this year and finally has ajob.

Larry今年毕业了,并且找到了工作。

He's making a lot of money, but somehownever seems to have enough.

他赚了很多钱,但不知怎的总觉得不够。

Larry has decided that he needs to grabhold of his financial portfolio and solve his financing problems.

他决定,他需要把握住他的投资组合(这句感觉好别扭,有没有更好的翻译,求指点),以解决他的经济问题。

The first step is to figure out what's beengoing on with his money.

首先要算出他的钱都去哪了

 Larry has his bank account statements andwants to see how much money he has.

Larry得到了他的银行账单,想要查看他有多少钱。

Help Larry by writing a program to take hisclosing balance from each of the past twelve months and calculate his averageaccount balance.

帮助Larry写一个程序,计算他过去12个月的终期余额和他的平均账户余额



Input

The input will be twelve lines. Each linewill contain the closing balance of his bank account for a particular month.

输入包含12行,每一行是他一个月的终期余额。

Each number will be positive and displayedto the penny. No dollar sign will be included.

输入的每个数都是一个正数,显示到分。没有美元符号。



Output

The output will be a single number, theaverage (mean) of the closing balances for the twelve months.

输出只有一个数,表示12月的平均余额。

 Itwill be rounded to the nearest penny, preceded immediately by a dollar sign,and followed by the end-of-line.

精确到分,开头加上美元符号,最后接一个行尾结束符

(注end-of-line意思是行尾结束符,一般来说就是\n)

There will be no other spaces or charactersin the output.

输出不包含空格或其他符号



Sample Input

100.00

489.12

12454.12

1234.10

823.05

109.20

5.27

1542.25

839.18

83.99

1295.01

1.75

Sample Output

$1581.42

转载于:https://www.cnblogs.com/ikaze/p/5140080.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值