Question: Applications Menu Python-programming-.ex... b Lab 5 Input, Processing...a Ic1001505@system64. atol.csmtsu.edu/abs/1 170/HTML-python/Lab5-PE2html Exercise 8 Write a complete Python program including minimal comments (file name, your name,
Applications Menu Python-programming-.ex... b Lab 5 Input, Processing...a Ic1001505@system64. atol.csmtsu.edu/abs/1 170/HTML-python/Lab5-PE2html Exercise 8 Write a complete Python program including minimal comments (file name, your name, and problem Lab 5 Input, Processing, and Output: Programming Exercise Chromium description) that solves the following problem Problem Specification: A cookie recipe calls for the following ingredients: 1.5 cups of sugar 1 cup of butter 2.75 cups of flour The recipe produces 48 cookies with this amount of ingredients. Write a program that asks the user how many cookies they want to make and then displays the number of cups of each ingredient needed for the specified number of cookies in the following format: You need 5 cups of sugar, 3 cups of butter, and 7 cups of flour Sample run #1: You need 7.5 cups of sugar. 5.o cups of butter. and 13.75 cups of flour. Sample run #2: Enter number of cookies: 48 You need 1.5 cups of sugar, 1.0 cups of butter, and 2.75 cups of flour Sample run #3: Enter number of cookies: 24 You need 0.75 cups of sugar, 0.5 cups of butter, and 1.375 cups of flour. Sample run #4: Enter number of cookiesi 0 You need 0.0 cups of sugar, 0.0 cups of butter, and 0.0 cups of flour Notes: Keep in mind f multiple arguments are passed to the print function, they are automaticaly separated by a space when they are displayed on the screen For instruction of how to do programming exercise click on the following link. Programming Exercise Instructions When you read, replace 3xpYY with lab number (5) for Xx and the exercise number(8) for YY, ie, 5p8 for this lab. Turn in the hardcopy of the script to the lab instructor
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
