Question: How much spaghetti sauce? I'm new to Python and I can't seem to figure out how to code this correctly. Python only runs the first

How much spaghetti sauce?

I'm new to Python and I can't seem to figure out how to code this correctly. Python only runs the first line of "enter the amount of spaghetti" but does not seem to read any code afterwards. If you could show the step by step code, that would be great!

This is the problem:

A spaghetti sauce recipe calls for the following ingredients:

2 cups of tomato sauce

1/3 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 programs output. This includes formulas your program will need. See sections 2.1 and 2.2 on designing a program and using pseudocode.

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!