Assume that hot dogs come in packages of 10, and hot dog buns come in packages of 8. Write a program called cookout.js, 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 assume there will be 525 people attending the cookout and each person will eat 3 hot dogs. The program should display the following details.
The minimum number of packages of hot dogs required.
The minimum number of packages 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.
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment