30 September, 10:24

# Dan has already delivered 48 donuts today. For the next few hours, Dan will deliver 60 donuts per hour. Match the number of donuts Dan will have delivered after a given number of hours to the corresponding recursive function. Tiles number of donuts delivered 2 hours from now number of donuts delivered 7 hours from now number of donuts delivered n hours from now number of donuts delivered 6 hours from now Pairs next = now + 6 * 60, starting at 48 arrowBoth next = now + 60 + 60, starting at 48 arrowBoth next = now + 420, starting at 48 arrowBoth next = now + 60n, starting at 48 arrowBoth

+1
1. 30 September, 10:33
0
A. number of donuts delivered 2 hours from now.

2. Next=now + 60+60

starting at 48 because 2 hours meant 2*60 = 60+60

B. number of donuts delivered 7 hours from now C

3. Next = now + 420

starting at 48 because 7 hours meant 7*60 = 420 mn

C. number of donuts delivered n hours from now.

4. Next=now+60n

starting at 48 (this is obvious)

so finally,

D. number of donuts delivered 6 hours from now.

1. Next = now + 6*60

starting at 48