please answer this
How to calculate the total bill. the first km will be charged 20 and each consequent km will be charged 17.50.
It is related to programming. I Just want to know the formula to calculate it.
Answers
Answered by
2
Answer:
20+(17.50×consequent km)
simple
Answered by
1
Answer:
let the total distance be x km
let total charge be y
17.5x = y - 2.5
Explanation:
let the total distance be x km
charge for 1st km = 20
charge for rest of the trip = 17.5
let total charge be y
the total charge will be =
17.5(x - 1) + 20 = y
17.5x - 17.5 +20 = y
17.5x = y - 2.5
Similar questions