Share your repls and programming experiences

← Back to all posts
Hot Dog Cookout Calculator
dezi13 (4)

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

Commentshotnewtop
Annie03 (0)

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

theangryepicbanana (1629)

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

etian (32)

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