Price With Tax
A store adds a sales tax of rate percent to each price. Return an array of the final prices, where each is price * (1 + rate / 100).
Example 1
prices [100,20]
rate 10
returns [110.00000000000001,22.0]
10 percent tax makes 110.0 and 22.0.
Constraints
1 <= len(prices) <= 1000 <= rate <= 100
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More NumPy problems
- Range of ReadingsBeginner
- Recent AverageBeginner
- Running TotalBeginner
- Same PositionsBeginner
- Shopping TotalBeginner
- Side by Side ColumnsBeginner
- Sign of EachBeginner
- Sorted DistinctBeginner