A car burns litres_per_100km litres of fuel every 100 km. Write trip_cost(distance_km, litres_per_100km, price_per_litre) returning the cost of the fuel for the trip, rounded to 2 decimal places.
Examples
Input: distance_km = 250, litres_per_100km = 6.5, price_per_litre = 1.8
Output: 29.25
Constraints
0 <= distance_km <= 10**5,0 <= litres_per_100km <= 50,0 <= price_per_litre <= 10
Goals
- Chain two conversions: distance to litres, litres to money
- Round to cents