PROGRAMMING:Calculate the price of vegetables
Mother goes out to buy vegetables every day, but when she comes back, she doesn't bother to count the money in her pocket. How much money she spent is really a muddle headed debt. Now, as a good son (daughter), you can use the program to calculate for her, ha ha. Mom has to pay for every dish, and she uses the method of rounding to get rid of the split. For example, if you buy only one kind of chicken leg, you can buy two chicken legs at 4.26 yuan each and pay 8.5 yuan. Buy a number of, as shown in the table below, each calculated amount rounded and then summarized. When mom came back, how much did she spend according to the variety and quantity of vegetables in the basket?
As follows:
number Unit Price amount of money total Rounding off
egg three two point five five seven point six five seven point seven
Bitter herbs one six point two three six point two three six point two
Tomatoes three three point five ten point five ten point five
total twenty-four point four
###Input format:
The input contains some data groups. Each group of data includes dish type (string), quantity (may be decimal) and unit price (may be decimal, unit is RMB). Therefore, the dish price of each group of data is quantity multiplied by unit price. There are spaces between the variety, quantity and unit price.
###Output format:
When paying the price of vegetables, the smallest unit of payment is Jiao, so when calculating the price of each kind of vegetables, we first use the rounding method to remove the sub head, and then summarize the total price of vegetables. Finally, please output a precision of the total price of the angle.
###Input example:
Here is a set of inputs. For example:
```in
Vegetables 1 2
Rob 2 1.52
Chicken leg 2 4.22
```
###Output example:
The corresponding output is given here. For example:
```out
thirteen point four
```
Tips:
Please deal with the rounding correctly. You should not add up the allowance for each dish.
It is suggested to use CIN of C + + for data input.
answer:If there is no answer, please comment
As follows:
number Unit Price amount of money total Rounding off
egg three two point five five seven point six five seven point seven
Bitter herbs one six point two three six point two three six point two
Tomatoes three three point five ten point five ten point five
total twenty-four point four
###Input format:
The input contains some data groups. Each group of data includes dish type (string), quantity (may be decimal) and unit price (may be decimal, unit is RMB). Therefore, the dish price of each group of data is quantity multiplied by unit price. There are spaces between the variety, quantity and unit price.
###Output format:
When paying the price of vegetables, the smallest unit of payment is Jiao, so when calculating the price of each kind of vegetables, we first use the rounding method to remove the sub head, and then summarize the total price of vegetables. Finally, please output a precision of the total price of the angle.
###Input example:
Here is a set of inputs. For example:
```in
Vegetables 1 2
Rob 2 1.52
Chicken leg 2 4.22
```
###Output example:
The corresponding output is given here. For example:
```out
thirteen point four
```
Tips:
Please deal with the rounding correctly. You should not add up the allowance for each dish.
It is suggested to use CIN of C + + for data input.
answer:If there is no answer, please comment