Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CIS 1 6 5 HW 2 : Shortbread Calculator 2 0 Points Shortbread. Who doesn't love it , and with just three ingredients, who couldn't

CIS165
HW2: Shortbread Calculator
20 Points
Shortbread. Who doesn't love it, and with just three ingredients, who couldn't make it'? And with
your help, this dense, buttery treat is about to get even easier.
Your Task
Code a Python Shortbread Calculator that will allow a user to 1) customize a recipe size and 2)
view nutritional information. A simple shortbread cookie recipe uses 1C butter, 12C sugar, and
2C flour to make 16 cookies. Your calculator will display custom ingredient amounts for any
number of cookies the user enters. For example, the following user is wanting to make a half recipe
of 8 cookies (of which they will eat 4). User input is circled to differentiate it from output:
A recipe of 4 cookies (and eating 2) will produce the following output:
How many cookies would you like to make?:(4)
For 1 cookies, you will use:
0.25C butter
0.125 C sugar
0.5 C flowr
Yore importantly, how many will you be eating?: 2
2 cookie(s) will provide 320 calories, 24g tat, and 36g
carbohydrate. Bon appetit!
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Handbook Of Relational Database Design

Authors: Candace C. Fleming, Barbara Von Halle

1st Edition

0201114348, 978-0201114348

More Books

Students also viewed these Databases questions