COMPLET THE PAIRS.
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.
A. number of donuts delivered 2 hours from now. B. number of donuts delivered 7 hours from now C. number of donuts delivered n hours from now. D. number of donuts delivered 6 hours from now.

1. Next= now+ 6*60
starting at 48

2. Next=now +60+60
starting at 48

3.Next= now +420
starting at 48

4. Next=now+60n
starting at 48

Respuesta :

the simple method is reading carefully the question:

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