subject

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.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:00
Annie is creating a corporate report for a company’s annual meeting. in the report, she wants to add the signature of various department heads. which device can annie use to capture signatures to include in the report? a. printer b. monitor c. e-reader d. digitizing tablet
Answers: 1
question
Computers and Technology, 22.06.2019 22:30
You are new to microsoft certification and want to start out by getting a certification geared around windows 8. what microsoft certification should you pursue?
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Freya realizes she does not have enough in her bank account to use the debit card. she decides to use a credit card instead. which questions should freya answer before using a credit card? check all that apply. can i pay at least the minimum payment each month? can i make payments on time and avoid late fees? will i have to take out a loan? how much in finance charges can i afford to pay? should i talk to a consumer credit counseling service?
Answers: 1
question
Computers and Technology, 23.06.2019 20:30
If an appliance consumes 500 w of power and is left on for 5 hours, how much energy is used over this time period? a. 2.5 kwh b. 25 kwh c. 250 kwh d. 2500 kwh
Answers: 1
You know the right answer?
Here is this story behind the code: you must find out from the user how many of their friends are co...
Questions
question
Mathematics, 20.05.2021 07:00
question
Business, 20.05.2021 07:00
Questions on the website: 13722363