3.8. (Part 1) Hot Dog Cookout Calculator - Python

in #programming8 years ago

Starting out with Python, Third Edition, Tony Gaddis
Chapter 3
Programming Challenges

  1. Hot Dog Cookout Calculator

Assume that hot dogs come in packages of 10, and hot dog buns come in packages 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 of hot dogs each person will be given. 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

Starting out with Python. Third Edition. Tony Gaddis.

Happy Steeming Everyone! :)

Coin Marketplace

STEEM 0.20
TRX 0.14
JST 0.030
BTC 68726.56
ETH 3273.79
USDT 1.00
SBD 2.67