Problem 1. How Much Spaghetti Sauce? 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 program's output. This includes formulas your program will need. Code. Write your program in Python using the above steps. Output. Your program should produce correct labeled output rounded to 2 decimal places. See section 2.8 More About Output. Sample dialog:

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 28PE
icon
Related questions
Question
Design a program for Problem 1 using an IPO chart provided. Python Coding not needed just design.
Input
Process
Output
Transcribed Image Text:Input Process Output
Problem 1. How Much Spaghetti Sauce?
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 program's
output. This includes formulas your program will need.
Code. Write your program in Python using the above steps.
Output. Your program should produce correcty 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
Programming Style Requirements.
Comments - Begin your program with a comment that includes: a) your name, b)program
status - either "Complete" or describe any incomplete or non-functioning part of your
program c)A 1-3 line description of what the program does.
Variable names - use meaningful variable names such as total taxes or
num cookies.
Named constants - Use named constants for all number values that will not be changed in
the program such as RECIPE TOMATO_SAUCE = 2.0. See section 2.9 on Named Constants
Transcribed Image Text:Problem 1. How Much Spaghetti Sauce? 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 program's output. This includes formulas your program will need. Code. Write your program in Python using the above steps. Output. Your program should produce correcty 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 Programming Style Requirements. Comments - Begin your program with a comment that includes: a) your name, b)program status - either "Complete" or describe any incomplete or non-functioning part of your program c)A 1-3 line description of what the program does. Variable names - use meaningful variable names such as total taxes or num cookies. Named constants - Use named constants for all number values that will not be changed in the program such as RECIPE TOMATO_SAUCE = 2.0. See section 2.9 on Named Constants
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr