homework1

王朝other·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

ABC bakeries is trying to predict it's cookie ingredient ordering needs more precisely. After years of baking cookies, the following formula holds true:

1000 cookies require 500kg of flour, 100kg of sugar, and 100 eggs.

However, ABC has discoverd that once the order is larger than 2000 cookies, then the recipe changes:

2000 cookies requires 1100kg of flour, 230kg of sugar, and 250 eggs.

The recipe ratios stays constant after that.

Further, ABC bakeries have observed that cookie orders for every month, after the month of January, grow 5% month over month.

ABC bakeries have decided that they will use a guess for how many cookies they will sell in January as the basis for predicting their ingredient needs for the rest of the year.

You are to write software that will:

- Take as input a guess of how many cookies ABC bakeries will sell in January

- Predict for them how many cookies they will sell and how much flour, sugar, and egss they will need for each month until December. Also predict the total.

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航