Here is this story behind the code: you must find out from the user how many of their friends are coming over (must include yourself), how many cans they want to drink of beer, and how many packs are needed.
I need help with the calculation as I am a bit off.
Example:
Friends = 10 (including self)
Beer Cans needs = 14
With this being said, the beer only comes in 6-packs. So here is what I have so far:
10 people * 14 cans = 140 cans
140 cans / 6 packs = 23.333 packs (BUT this is suppose to be 24 packs from what the instructor has included in the example because you can't obviously just buy 23.3 packs, so what is this equation supposed to be in order to get 24 and not 23 as an int, NOT a double)
Overall, I don't really need any coding answers, but mostly calculations for finding the packs needed. What can I put in my code to make it round to 24 appropriately?