5.0k views
3 votes
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

User Kaycee
by
5.4k points

2 Answers

5 votes

Answer:

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

Explanation:

User Manuel Mannhardt
by
5.7k points
3 votes
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
User Kestasx
by
6.1k points