Question: create a code using python that would give the following outputs. You have proposed to develop a new program that will determine whether or not



You have proposed to develop a new program that will determine whether or not the bakery can fill a new order request so that they don't need to spend time crunching the numbers themselves. They have given you their recipe, which yields 48 cupcakes (and frosting!), and the size of each ingredient's inventory unit. You have determined that the inputs you need for the program to make an accurate decision are: The total number of nests already on order The number of nests in the requested order The current inventory on hand of each ingredient They are very excited about the program since it will replace a lot of conversions they would need to figure out manually otherwise. They are requesting that you make the program easily adaptable in case they update their recipe or start ordering larger units of the ingredients. Ingredient Recipe Quantity Inventory Unit flour 5 cups 25 lb bag sugar 3 cups 30 lb bag powdered sugar 16 cups 20 lb bag butter 6 cups 36 lb box eggs 9 ea 1 flat milk 3 cups 1 gallon There are 2 cups in a pound, 30 eggs in a flat, 16 cups in a gallon, and 6 cupcakes in a nest. Based on the total number of cupcakes they would need to produce, figure out if there is enough inventory on hand to meet the new order request in addition to the current orders. You should only approve adding the new order if the ingredients on hand can make the total number of batches needed - there will be no dividing of the recipe. To make things simple, the inventory on hand will only be reported for unopened units. Input Specifications All inputs will be nonnegative integers. Output Specifications Your output should state what the program is, prompt for the number of nests on order and the number of nests in the new order, then prompt for the quantity on hand of each of the six ingredients. Finally, you will print a statement saying whether or not the order can be filled. Properly formatted output (in accordance with the style guide) is required, but the text, spacing, and alignment of your output does not need to be an exact match to the provided examples. As long as you are meeting the assignment requirements, matching the expected values for test cases, and following the style guide, you will not lose points for other differences in output. If you are uncertain about these specifications, please see a TA in office hours. Sample Runs These are not the test cases you will be graded on, so passing these will not necessarily guarantee passing grading test cases. Be sure to test your program beyond what is provided here. Sample Run #1 New Order Analyzer Number of nests on order: Number of nests desired: 14 2 NE Flour on hand: Sugar on hand: Powdered sugar on hand: Butter on hand: Eggs on hand: Milk on hand: NMM 2 3 7 4 1 3 The order can be filled. (Inputs are: 14, 2, 2, 3, 7, 4, 1,3) Sample Run #3 New Order Analyzer Number of nests on order: Number of nests desired: 2 113 22 Flour on hand: Sugar on hand: Powdered sugar on hand: Butter on hand: Eggs on hand: Milk on hand: W NOW W 3 3 6 2 5 3 The order cannot be filled at this time. (Inputs are: 113, 22, 3, 3, 6, 2, 5, 3)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
