2.10. Ingredient Adjuster - Python

in #programming10 years ago (edited)

Starting out with Python, Third Edition, Tony Gaddis

Chapter 2

Programming Challenges

10. Ingredient Adjuster

A cookie recipe calls for the following ingredients:

1.5 cups of sugar

1 cup of butter

2.75 cups of flour

The recipe produces 48 cookies with this amount of the ingredients. Write a program that asks the user how many cookies he or she wants to make, and then displays the number of cups of each ingredient needed for the specified number of cookies.

Starting out with Python. Third edition. Tony Gaddis

Happy Steeming Everyone! :)

Coin Marketplace

STEEM 0.04
TRX 0.32
JST 0.082
BTC 61289.85
ETH 1583.19
USDT 1.00
SBD 0.47