Search:

Submit Article

Calculate Economic Order Quantity EOQ = sqrt( (2* demand rate * setup costs)/(holding cost per item per unit time)

Posted By: Marla Davis     Category: C Programming     Views: 13087

Code for Calculate Economic Order Quantity EOQ = sqrt( (2* demand rate * setup costs)/(holding cost per item per unit time) in C Programming

```#include <stdio.h>
#include <conio.h>
#include <math.h>

void main()
{
float EOQ,dem_rate,set_cost,hold_cost,TBO;
clrscr();

printf("\nEnter demand rate:");
scanf("%f",&dem_rate);

printf("\nEnter setup costs:");
scanf("%f",&set_cost);

printf("\nEnter holding cost per item per unit time:");
scanf("%f",&hold_cost);

EOQ=sqrt((2*dem_rate*set_cost)/(hold_cost));
TBO=sqrt((2*set_cost)/(dem_rate*hold_cost));

printf("\nEconomic Order Quantity is:%f",EOQ);

printf("\n");

printf("\nTime Between Orders is:%f",TBO);

getch();
}

/*    outputEnter demand rate:50Enter setup costs:2000Enter holding cost per item per unit time:1500Economic Order Quantity is:11.547006Time Between Orders is:0.230940*/```
Share:

 Marla Davis author of Calculate Economic Order Quantity EOQ = sqrt( (2* demand rate * setup costs)/(holding cost per item per unit time) is from Los Angeles, United States. View All Articles

 Please enter your CommentComment should be atleast 30 Characters.Please put code inside [Code] your code [/Code]. No Comment Found, Be the First to post comment!