Question: Lab 2 - Simple Programs Problem 1 . How Much Spaghetti Sauce? A spaghetti sauce recipe calls for the following ingredients: 2 cups of tomato
Lab Simple Programs
Problem How Much Spaghetti Sauce?
A spaghetti sauce recipe calls for the following ingredients:
cups of tomato sauce
cup of tomato paste
cloves garlic
tablespoon oregano
The recipe produces servings with this amount of ingredients. Write a program that asks the user how many servings they want to make, then displays the amount of each ingredient needed for the specified number of servings.
Design. You will be using an IPO diagram to design your program. See IPO diagram attached to this assignment. Under INPUTS, list everything the program will need to produce the result. Under OUTPUTS, list what the program is going to produce. Under the PROCESS heading, list the detailed pseudocode steps that need to occur to produce the program's output. This includes formulas your program will need. See sections and on designing a program and using pseudocode.
Code. Write your program in Python using the above steps. Save your program as a file with the name yourlastnameLabpy
Output. Your program should produce correctly labeled output rounded to decimal places. See section More About Output. Sample dialog:
Enter the number of servings of spaghetti sauce you want to make:
To make servings of spaghetti sauce, you will need:
cups of tomato sauce
cups of tomato paste
cloves of garlic
tablespoons of oregano
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
