WILL GIVE BRAINLIST TO BEST ANSWER

The cost of a ride in a taxi is $4 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.

4, 4.50, 5, 5.50, 6, ...

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.