169,097 views
12 votes
12 votes
The cost of a ride in a taxi is $2.50 for the first half-mile plus a constant amount per half-mile after that. The sequence below shows the pattern of numbers that appear on the driver's screen.

2.50, 2.75, 3.00. 3.25, 3.50, 3.75


Part A: Write a recursive function that can be used to determine f(x), the cost in dollars, for a ride in the taxi of, x, half-miles.

The cost of a ride in a taxi is $2.50 for the first half-mile plus a constant amount-example-1
User Malchesador
by
2.8k points

1 Answer

24 votes
24 votes

Answer: 2.50 + 0.35(15.75-1)*4 = $23.15 is the answer

Step-by-step explanation: Hope this helps!

User Nonsensation
by
3.1k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.