asked 140k views
22 votes
PLEASE HELP

Write a function to describe the following scenario.
A taxi driver charges a $5 flat fee to
enter the car and $0.50 per mile.
What is the total cost of a taxi ride?

asked
User Detlef
by
7.1k points

1 Answer

13 votes

Answer:

Total Fee = $5 + ($0.50/mile)*(x miles)

Explanation:

Let x be the miles driven. The total cast for the mileage alone would be:

($0.50/mile)*(x miles) = mileage fee

Total Fee = $5 + ($0.50/mile)*(x miles)

answered
User Amin Jafari
by
8.2k points

No related questions found

Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.