Connect with a knowledgeable community and get your questions answered on IDNLearn.com. Join our community to receive timely and reliable responses to your questions from knowledgeable professionals.
Sagot :
Since each game costs $4.75, we need to add this quantity to the expression every recursive call. Also, we have that f(0) = 2.75, which is the cost of shoe rental.
If we evaluate n = 1 and n = 2 on the following expression, we have:
[tex]\begin{gathered} f(n)=f(n-1)+4.75 \\ f(1)=f(0)+4.75=2.75+2.75=7.5 \\ f(2)=4.75+f(1)=4.75+7.5 \end{gathered}[/tex]notice that on f(2) we have the cost of one game plus the cost of the previous game and the shoe rental
therefore, the recursive equation for f(n) is f(n) = 4.75 + f(n-1)
We are delighted to have you as part of our community. Keep asking, answering, and sharing your insights. Together, we can create a valuable knowledge resource. IDNLearn.com is committed to your satisfaction. Thank you for visiting, and see you next time for more helpful answers.