Question: Use python program 3:40 1 BACKGROUND: The Bake My Day bakery wishes to forocast the cost of producing various bakery products during the year. Each
3:40 1 BACKGROUND: The Bake My Day bakery wishes to forocast the cost of producing various bakery products during the year. Each bakery product is prodaced using a different mix of raw ingredients.Morcover, because many of these ingredients are seasonal, the price of these ingredients varies from month to month. The bokery kesps a recipe file that is a table with one line per product that indicates the amount of ingredient needed for each product. This table looks like: Bakery Recipe Table The manager of the bakery also keeps a computerized spreadsheet that forecasts the price of ingredients for the various products by month as follows: Ingredient Prices by Month What the Bake My Day manager wants is a table forecasting the monthly cost of bakery products that resembles the following: Monthly Cest of Bakery Products Ferecast PROBLEM DESCRIPTION: Write a Python program to calculate and print the Monthly Cost of Bakery Products Forecast table using data from the files described below, All table values are non-negative integers. IMPLEMENTATION NOTES: Do all your work in a directoryOL Vola114 that you will create. For the completed version of this program, use as your source file name bakery-py". A stater skeleton program, heavily stubbod, is available as SPURbakerystart.py. Copy the skeleton and use it as your starting point. Develop your code incrementally. As an aid to development, sections that roquire modification have been marked by triple question marks (72). You will not need to create any additional functions not already present in the skeleton. Do not use any global variables The input files will be "products.dat", "ingredients.dar", and "prices.dat" The first line of the products.dat file has the number (M) of prodact names found in the file. The remaining M lines of the file contain the names of all the bakery products, one product name per line. The first line of the ingredients.dat file has the number (N) of ingredients per line of the file. The remaining M lines of the file contain the N ingrodient amounts needed for each product. If a particular ingredient is not needed for a product, the amount is set to zero. The first line of the pricesseing months of the cost
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
