Question: Google 'Joey Chestnut'. This will put you into the right frame of mind to solve this age - old problem. Hot dogs often come 1

Google 'Joey Chestnut'. This will put you into the right frame of mind to solve this age-old problem. Hot dogs often come 10 per pack. Buns often are 8 per pack.(Why????) This always leaves the problem of how many packages of each to buy so you have as few left-overs as possible. (In the book the problem reads this way:
The program should ask the user for the number of people attending the cookout and the number of hot dogs each person will be served (whole numbers only!). The program should display the following results:
The minimum number of packages of hot dogs required
The minimum number of packages of buns required
The number of hot dogs that will be left over
The number of buns that will be left over
Create a Python program named HotDogCalc.py that solves this problem. Once you have it running correctly, submit it to this drop box.By the way, what's the minimum number of people needed to make sure you have NO leftovers?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!