Ashley has 100 books that she wants to give away at the rate of n books per week. Write a recursive function that represents the number of books Ashley has at any time. The recursive function that gives the number of books Ashley has at any time is
Ashley has 100 books that she wants to give away at the rate of n books per week. Write a recursive function that represents the number of books Ashley has at any time. The recursive function that gives the number of books Ashley has at any time is?
Hmm. I seem to have forgotten how to do Recursive Functions. Have you tried to "Mainstream" google this question?
I see quite a few results and at least two that might be able to help you.
Recursive refers to a function dependent on a previous value \[f(t) = 5 f(t-1)\] This for example is a function that equals 5 times its previous value. For these functions, an initial value must be given. Ok for this problem the initial value is 100 .... f(0) = 100 n books are given away each week, so there are n less books than previous week \[f(t) = f(t-1) - n\]
Join our real-time social learning platform and learn together with your friends!