Task 2 Recipe
Create a program that will store the ingredients for a recipe.
• The program should ask the user to input:
• the number of people the recipe will serve
• a list of ingredients: item, quantity and units for example flour, 150, grams
• the program should store the recipe name, number of people and the list of ingredients
with their quantities and units.
The user should be able to retrieve the recipe and have the ingredients recalculated for a different
number of people.
• The program should ask the user to input the number of people.
• The program should output:
• the recipe name
• the new number of people
• the revised quantities with units for this number of people.
Create a program that will store the ingredients for a recipe.
• The program should ask the user to input:
• the number of people the recipe will serve
• a list of ingredients: item, quantity and units for example flour, 150, grams
• the program should store the recipe name, number of people and the list of ingredients
with their quantities and units.
The user should be able to retrieve the recipe and have the ingredients recalculated for a different
number of people.
• The program should ask the user to input the number of people.
• The program should output:
• the recipe name
• the new number of people
• the revised quantities with units for this number of people.