Skip to content
Sign upLog in
← Back to Community

Hot Dog Cookout Calculator

Profile icon
dezi13

Assume hot dogs come in packages of 10, and the hot dog buns come in package of 8. Write a program that calculates the number of packages of hot dogs and the number of packages of hot dog buns needed for a cookout, with the minimum amount of leftovers. The program should ask the user for the number of people attending the cookout and the number hot dogs each person will be given. The program should display the following details:
The minimum number of package of hot dogs required
The minimum number of package of hot dog buns required
The number of hot dogs that will be left over
The number of hot dog buns that will be left over

Voters
Profile icon
JRM111
Profile icon
mleyva22
Profile icon
ajfugskhv
Profile icon
daraadesuyi
Profile icon
Foster_Bryant
Profile icon
dezi13
Comments
hotnewtop
Profile icon
Annie03

When I tried to start the game, it kept giving errors. You might want to look back over your code.

Profile icon
theangryepicbanana

Hey can you like not post every homework assignment here? Really just post the ones you feel really proud about. thx

Profile icon
etian

@theangryepicbanana
honestly i thought it was like a challenge and he was giving his version