Using R to help determine how much food to make
The office is having a potluck. There are 40 people in the office. One box of cupcakes makes 24 servings. How many boxes of cake mix are needed?
40/24
[1] 1.666667
It looks like we will need more than 1.6 boxes. To ensure eveyone gets a cupcake, 2 full cake mixes are needed.
24*2
[1] 48
Two cake mixes will make 48 cupcakes. That means we will have extra for people to have seconds if they like.
48-40
[1] 8
There will be 8 extra cupcakes.
Two cakes mixes will be perfect!