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 ageold problem. Hot dogs often come per pack. Buns often are per pack.Why This always leaves the problem of how many packages of each to buy so you have as few leftovers 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
