Eoq and Level Setting

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

EOQ AND LEVEL SETTING

#include<iostream.h> #include<conio.h> #include<math.h> void main() { clrscr(); float c,o,i,reorderqty,maxcons,maxperiod,normalcons,normalperiod,minico ns,minip riod; double eoq,rol,minilevel,maxlevel; cout<<"\n EOQ AND LEVEL SETTING:"; cout<<"\n **********************\n"; cout<<"\n ENTER THE ANNUAL RREQUIREMENT:"; cin>>c; cout<<"\n Enter the cost per order:"; cin>>o; cout<<"\n Enter the carring cost:"; cin>>i; eoq=sqrt((2*c*o)/i); cout<<"\n ECONOMIC ORDER QUANTITY:"<<eoq<<"\n"; cout<<"\n Enter the maximum consumption:"; cin>>maxcons; cout<<"\n Enter the maximum period:"; cin>>maxperiod; cout<<"\n Enter the normal consumption:"; cin>>normalcons; cout<<"\n Enter the normal period:"; cin>>normalperiod; cout<<"\n Enter the reorder quantity:"; cin>>reorderqty; cout<<"\n Enter the minimum consumption:"; cin>>minicons; cout<<"\n Enter the minimum period:"; cin>>miniperiod; rol=maxcons*maxperiod;

cout<<"\n REORDER LEVEL:"<<rol<<"\n"; minilevel=rol-(normalcons*normalperiod); cout<<"\n MINIMUM STOCK LEVEL:"<<minilevel<<"\n\n"; maxlevel=rol+reorderqty-(minicons*miniperiod); cout<<"MAXIMUM STOCK LEVEL:"<<maxlevel<<"\n\n"; getch(); }

output
EOQ AND LEVEL SETTING: ********************** ENTER THE ANNUAL RREQUIREMENT:5000 Enter the cost per order:500 Enter the carring cost:120 ECONOMIC ORDER QUANTITY:208.1666 Enter the maximum consumption:500 Enter the maximum period:13 Enter the normal consumption:400 Enter the normal period:12 Enter the reorder quantity:13 Enter the minimum consumption:200 Enter the minimum period:10 REORDER LEVEL:6500 MINIMUM STOCK LEVEL:1700 MAXIMUM STOCK LEVEL:4513

You might also like