Question: If the code does not compile you receive zero points. Your code should contain comments. 1) Prompt the user for the number of cups of
If the code does not compile you receive zero points. Your code should contain comments.
1) Prompt the user for the number of cups of lemon juice, water, and sugar needed to make lemonade. [10 points]
2) Prompt the user to specify the number of servings the recipe yields. [5 points]
3) Output the ingredients and serving size. [10 points]
Run your program to see if this part works. If your program runs successfully, modify the code to complete the next steps.
4) Prompt the user to specify the desired number of servings they want. [10 points]
5) Adjust the amounts of each ingredient accordingly, and then output the ingredients and serving size. [15 points]
6) Convert the ingredient measurements from step 2 to gallons. Output the ingredients and serving size. Note: There are 16 cups in a gallon. [10 points]
Sample output is shown below:

(hellboy) NSCHNS118:labs troy5 python lab3a.py Enter anount of lenon juice (in cups): Enter anount of water (in cups): 15.65 Enter anount of agave nectar (in cups) How nany servings does this Bake? Leronade ingredients yields 2.8 servings 4.8 cup(s) lenon Juice 15.65 cup(s) water 8.5 cup(s) agave nectar How sany servings would you 11ke to make? 15 Lexonade ingredients yields 15.8 servings 38.8 cup(s) lenon juice 117.375 cup(s) water 3.75 cup(s) agave nectar Leronade ingredients -yields 15.8 servings 1.875 gallon(s) 1enon juice 7.3359375 gallon 8.234375 gallon(s) agave nectar s) water (hel1boy) NSCHNS118:1abs troys
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
