Java mega problem
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Java mega problem

  1. #1
    Join Date
    Sep 2009
    Posts
    1

    Angry 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 lost-profit 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

  2. #2
    Join Date
    May 2006
    Location
    UK
    Posts
    4,473

    Re: Java mega problem

    Ok, that's your homework, so what's your question?

  3. #3
    Join Date
    Apr 2007
    Posts
    442

    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center