A car rental agency charges a flat fee of € 80 for each day 50 km, which includes the prime mover. It is 20 cents per mile for each distance of 50 kilometers. Write a function that models the amount charged.
Tags: 50km, Agency, cents, charges, driven., first, flat, includes, rate, rental
you can get promo codes at http://www.rentalcarscode.com/
80 x a + ( (b – 50) x .20) = c
where
a = the number of rental days
b = the total km driven
c = the cost of the rental before taxes.
if the vehicle was driven for 5 days and a total of 800 km the price of the rental would be:
80 x 5 + ( (800 – 50) x .20) =
400 + (750 x .20) =
400 + 150 = $550 (base rate before taxes)
For tips on car rentals visit http://www.best-car-rental-tips.com