Proxy > Gmail Facebook Yahoo!

29. In inventory management, the Economic Order Quantity for a single ------------Write a program to compute EOQ and TBO, given demand rate (items per unit time), setup costs (per order), and the holding cost (per item per unit time).



import java.util.*;
import java.lang.Math;

public class CalculateEconomicOrder

 
  public static void main(String[] args)
  {
    double EOQ,dem_rate,set_cost,hold_cost,TBO;
    Scanner scan=new Scanner(System.in);
   
    System.out.println("\nEnter demand rate:");
    dem_rate=scan.nextDouble();
   
    System.out.println("\nEnter setup costs:");
    set_cost=scan.nextDouble();
   
    System.out.println("\nEnter holding cost per item per unit time:");
    hold_cost=scan.nextDouble();
   
    EOQ=Math.sqrt((2*dem_rate*set_cost)/(hold_cost));
    TBO=Math.sqrt((2*set_cost)/(dem_rate*hold_cost));
   
    System.out.println("\nEconomic Order Quantity is:"+EOQ);
   
    System.out.println();
   
    System.out.println("\nTime Between Orders is:"+TBO);
  }
 
}


Responses

0 Respones to "29. In inventory management, the Economic Order Quantity for a single ------------Write a program to compute EOQ and TBO, given demand rate (items per unit time), setup costs (per order), and the holding cost (per item per unit time)."


Send mail to your Friends.  

Expert Feed

 
Return to top of page Copyright © 2011 | My Code Logic Designed by Suneel Kumar