2.10. Ingredient Adjuster - Python

in programming •  8 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! :)

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!