PROGRAMMING:Financial Management(ZOJ:1048)
### Describes
Larry graduated this year and finally has a job. He's making a lot of money, but somehow never seems to have enough. Larry has decided that he needs to grab hold of his financial portfolio and solve his financing problems. The first step is to figure out what's been going on with his money. Larry has his bank account statements and wants to see how much money he has. Help Larry by writing a program to take his closing bal ance from each of the past twelve months and calculate his average account balance.
### Input Format:
The input will be twelve lines. Each line will contain the closing balance of his bank account for a particular month. Each number will be positive and displayed to the penny. No dollar sign will be included.
### Output Format:
The output will be a single number, the average (mean) of the closing balances for the twelve months. It will be rounded to the nearest penny, preceded immediately by a dollar sign, and followed by the end-of-line. There will be no other spaces or characters in the output.
### Sample Input:
```in
one hundred
four hundred and eighty-nine point one two
twelve thousand four hundred and fifty-four point one two
one thousand two hundred and thirty-four point one zero
eight hundred and twenty-three point zero five
one hundred and nine point two zero
five point two seven
one thousand five hundred and forty-two point two five
eight hundred and thirty-nine point one eight
eighty-three point nine nine
one thousand two hundred and ninety-five point zero one
one point seven five
```
### Sample Output:
```out
$1581.42
```
### Source
https://zoj.pintia.cn/problem-sets/91827364500/problems/91827364547
, selected from ZOJ website of Zhejiang University, question number: 1048.
###This question is No. 1048 on ZOJ website of Zhejiang University
Financial management
###Task description
Larry graduated this year and finally got a job. He made a lot of money, but never seemed to have enough. Larry has decided that he needs to seize his financial portfolio and solve his financing problems. The first step is to figure out what happened to his money. Larry has a bank bill and wants to see how much money he has. Please help Larry write a program to calculate his average account balance based on the balance of each month in the past 12 months.
###Input format:
The input will be twelve lines. Each line contains the balance of a bank account for a specific month. Every number is positive and shows up on a penny. The dollar mark is not included.
###Output format:
The output will be a single number, the average of the twelve month balances. It will be rounded to the nearest penny and output a dollar sign in front of the number. There are no other spaces or characters in the output.
###Tips
In fact, the title requires us to read in 12 real numbers, and then output their average value. The output result retains 2 decimal places, and the output result is preceded by $.
answer:If there is no answer, please comment
Larry graduated this year and finally has a job. He's making a lot of money, but somehow never seems to have enough. Larry has decided that he needs to grab hold of his financial portfolio and solve his financing problems. The first step is to figure out what's been going on with his money. Larry has his bank account statements and wants to see how much money he has. Help Larry by writing a program to take his closing bal ance from each of the past twelve months and calculate his average account balance.
### Input Format:
The input will be twelve lines. Each line will contain the closing balance of his bank account for a particular month. Each number will be positive and displayed to the penny. No dollar sign will be included.
### Output Format:
The output will be a single number, the average (mean) of the closing balances for the twelve months. It will be rounded to the nearest penny, preceded immediately by a dollar sign, and followed by the end-of-line. There will be no other spaces or characters in the output.
### Sample Input:
```in
one hundred
four hundred and eighty-nine point one two
twelve thousand four hundred and fifty-four point one two
one thousand two hundred and thirty-four point one zero
eight hundred and twenty-three point zero five
one hundred and nine point two zero
five point two seven
one thousand five hundred and forty-two point two five
eight hundred and thirty-nine point one eight
eighty-three point nine nine
one thousand two hundred and ninety-five point zero one
one point seven five
```
### Sample Output:
```out
$1581.42
```
### Source
https://zoj.pintia.cn/problem-sets/91827364500/problems/91827364547
, selected from ZOJ website of Zhejiang University, question number: 1048.
###This question is No. 1048 on ZOJ website of Zhejiang University
Financial management
###Task description
Larry graduated this year and finally got a job. He made a lot of money, but never seemed to have enough. Larry has decided that he needs to seize his financial portfolio and solve his financing problems. The first step is to figure out what happened to his money. Larry has a bank bill and wants to see how much money he has. Please help Larry write a program to calculate his average account balance based on the balance of each month in the past 12 months.
###Input format:
The input will be twelve lines. Each line contains the balance of a bank account for a specific month. Every number is positive and shows up on a penny. The dollar mark is not included.
###Output format:
The output will be a single number, the average of the twelve month balances. It will be rounded to the nearest penny and output a dollar sign in front of the number. There are no other spaces or characters in the output.
###Tips
In fact, the title requires us to read in 12 real numbers, and then output their average value. The output result retains 2 decimal places, and the output result is preceded by $.
answer:If there is no answer, please comment