Answered step by step
Verified Expert Solution
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
CIS
HW: Shortbread Calculator
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 customize a recipe size and
view nutritional information. A simple shortbread cookie recipe uses butter, sugar, and
flour to make 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 cookies of which they will eat User input is circled to differentiate it from output:
A recipe of cookies and eating will produce the following output:
How many cookies would you like to make?:
For cookies, you will use:
butter
C sugar
C flowr
Yore importantly, how many will you be eating?:
cookies will provide calories, tat, and
carbohydrate. Bon appetit!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started