216k views
4 votes
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?
y = [?]x + [?]

Write a function to describe the following scenario. A taxi driver charges a $5 flat-example-1
User Story
by
2.6k points

1 Answer

3 votes

Answer:

y = $0.50x + $5. $7 if you went 4 miles

Explanation:

$0.50 will be the coefficient for the variable x since the amount changes based on how many miles you ride. $5 will be the amount you are charged just for getting into the taxi and doesn't change depending on how many miles you go.


y=0.50x+5

I used x = 4 for the number of miles travelled.


y=0.50(4)+5


y=2+5


y= $7 total cost

User PeterRing
by
3.0k points