All problems

Adding Sales Tax to Every Price

easyPythonNumPyBroadcasting

Riverbend Supply's shelf-edge labels show prices with sales tax already in them, but the buying system stores prices without it. Tax is 8 percent on every line, with no exemptions. The label printer takes the whole day's price list in one go, and the prices come off the buying system in shelf order — the labels have to come back in that same order or they end up on the wrong shelves.

Task: Print the shelf price of every item: the stored price with 8 percent tax added on top.

Input

The first line holds a single integer n, the number of prices. Each of the next n lines holds one price in dollars, which may carry decimals.

Output

One line holding all n shelf prices, in the original order, separated by single spaces, each with two digits after the decimal point.

Example:

Input:
2
10.00
25.00

Output:
10.80 27.00

Sign in to solve this problem

Reading problems is free for everyone — solving them (Run, Submit, and tracking what you've solved) needs an account.

Sign in

Discussion

Sign in to join the discussion — reading is open to everyone.

Loading comments…