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 2- Simple Programs
Problem 1. How Much Spaghetti Sauce?
A spaghetti sauce recipe calls for the following ingredients:
2 cups of tomato sauce
13 cup of tomato paste (.333)
2 cloves garlic
1 tablespoon oregano
The recipe produces 4 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 2.1 and 2.2 on designing a program and using pseudocode.
Code. Write your program in Python using the above steps. Save your program as a.?py file with the name yourlastname_Lab2.1.py
Output. Your program should produce correctly labeled output rounded to 2 decimal places. See section 2.8 More About Output. Sample dialog:
Enter the number of servings of spaghetti sauce you want to make: 9
To make 9.0 servings of spaghetti sauce, you will need:
4.50 cups of tomato sauce
0.75 cups of tomato paste
4.50 cloves of garlic
2.25 tablespoons of oregano
 Lab 2- Simple Programs Problem 1. How Much Spaghetti Sauce? A

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!