Question
Please help program in python read all instructions
2.13 LAB*: Program: Cooking measurement converter Output each floating point value with two digits after the decimal point, w
mon Programming home > 2 13. LAB : Program: Cooking measurement converter How many servings would you like to make? 48 Lemona
1 0
Add a comment Improve this question Transcribed image text
Answer #1

Working code implemented in Python and appropriate comments provided for better understanding:

Source code for main.py:

lemon=float(input('Enter amount of lemon juice (in cups): \n'))
water=float(input('Enter amount of water (in cups): \n'))
agave=float(input('Enter amount of agave nectar (in cups): \n'))
jug=float(input('How many servings does this make? \n'))

print ('\nLemonade ingredients - yields',jug,'servings')
print (lemon,'cup(s) lemon juice')
print (water,'cup(s) water')
print (agave,'cup(s) agave nectar')

serv=float(input('\nHow many servings would you like to make? \n'))
lemon = ((lemon/6)*serv)
water = ((water/6)*serv)
agave = ((agave/6)*serv)

print ('\nLemonade ingredients - yields',serv,'servings')
print (lemon,'cup(s) lemon juice')
print (water,'cup(s) water')
print (agave,'cup(s) agave nectar')

print ('\nLemonade ingredients - yields',serv,'servings')
print (lemon/16,'gallon(s) lemon juice')
print (water/16,'gallon(s) water')
print (agave/16,'gallon(s) agave nectar')

Code Screenshots:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 lemon=float(input(Enter amount of lemon juice (in cups): \n)) water-float(input(Enter

Output Screenshots:

x Enter amount of lemon juice (in cups): 2 Enter amount of water (in cups): 16 Enter amount of agave nectar (in cups): 2.5 Ho

Hope it helps, if you like the answer give it a thumbs up. Thank you.

Add a comment
Know the answer?
Add Answer to:
Please help program in python read all instructions 2.13 LAB*: Program: Cooking measurement converter Output each...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT