Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2.19 LAB*: Program: Cooking measurement converter Output each floating-point value with two digits after the decimal point, which can be achieved as follows: print(f'{your_value: .2f

image text in transcribed

2.19 LAB*: Program: Cooking measurement converter Output each floating-point value with two digits after the decimal point, which can be achieved as follows: print(f'\{your_value: .2f }) (1) Prompt the user for the number of cups of lemon juice, water, and agave nectar needed to make lemonade. Prompt the user to specify the number of servings the recipe yields. Output the ingredients and serving size. (Submit for 2 points). Note: This zyLab outputs a newline after each user-input prompt. For convenience in the examples below, the user's input value is shown on the next line, but such values don't actually appear as output when the program runs. Enter amount of lemon juice (in cups): 2 Enter amount of water (in cups): 16 Enter amount of agave nectar (in cups): 2.5 How many servings does this make? 6 Lemonade ingredients - yields 6.00 servings 2.00 cup(s) lemon juice 16.00 cup(s) water 2.50 cup(s) agave nectar (2) Prompt the user to specify the desired number of servings. Adjust the amounts of each ingredient accordingly, and then output the ingredients and serving size. (Submit for 4 points, so 6 points total). How many servings would you like to make? 48 Lemonade ingredients - yields 48.00 servings 16.00 cup(s) lemon juice 128.00 cup(s) water 20.00 cup(s) agave nectar (3) Convert the ingredient measurements from (2) to gallons. Output the ingredients and serving size. Note: There are 16 cups in a gallon. (Submit for 2 points, so 8 points total). Lemonade ingredients - yields 48.00 servings 1.00 gallon(s) lemon juice 8.00 gallon(3) water 1.25 gallon(s) agave nectar main.py Load default template... 1 lemon_juice_cups = float(input('Enter amount of lemon juice (in cups)! 'n')) 2 3 \# FIXME (1): Finish reading other items into variables, then output the three ingredients 4 5 \#FIXME (2): Prompt user for desired humber of seruings. Convert and output the ingredients 6 7 \# FIXME (3): Convert and output the ingredients from (2) to gallons 8 9

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

How To Build A Million Dollar Database

Authors: Michelle Bergquist

1st Edition

0615246842, 978-0615246840

More Books

Students also viewed these Databases questions

Question

4. Describe the role of narratives in constructing history.

Answered: 1 week ago

Question

1. Identify six different types of history.

Answered: 1 week ago