
September 29th, 2009, 06:28 PM
#1
Java mega problem
Pierre’s Bakery (Taken from Winston, Operations Research,Duxbury, 1994.)
Pierre’s Bakery bakes and sells French bread. Each morning the bakery satisfies the demand for the day using freshly baked bread. Pierre’s can bake bread only in batches of a dozen loaves each. Each loaf costs $0.25 to make. For simplicity, assume that the total daily demand for bread also occurs in multiples of 12. Past data have shown that this demand ranges from 36 to 96 loaves per day. A loaf sells for $0.40 and any bread left over at the end of the day is sold to a charitable kitchen for $0.10 per loaf. If demand exceeds supply, we assume there is a lostprofit cost 0f $0.15 per loaf (because of loss of goodwill, loss to other bakers, etc.). The bakery records show that the daily demand can be categorized into three types: high, average and low. These demands occur will probability 0.30, 0.45 and 0.25 respectively. The distribution of daily demand by category is given below Pierre’s would like to determine the optimal number of loaves to bake each day to maximize profits (revenues + salvage revenue – cost of bread – cost of good will)
Demand (Loaves)
High Average Low
36 0.05 0.10 0.15
48 0.10 0.25 0.25
60 0.25 0.30 0.35
72 0.30 0.25 0.15
84 0.20 0.05 0.05
96 0.10 0.05 0.05
Write a Java program which will allow the user to input a policy and which will out 30 days of production

September 30th, 2009, 02:09 AM
#2
Re: Java mega problem
Ok, that's your homework, so what's your question?

September 30th, 2009, 02:22 AM
#3
Re: Java mega problem
Two things I dont see, one is "problem", other is "mega". What did you actually want to ask?
Tags for this Thread
Posting Permissions
 You may not post new threads
 You may not post replies
 You may not post attachments
 You may not edit your posts

Forum Rules

Click Here to Expand Forum to Full Width
This a Codeguru.com survey!
