You are on page 1of 1

Roll no.----- 06 #include<iostream.h> #include<conio.h> #include<math.

h> class manufacture { float r, k, Co, Cc; int t, t1, t2, n, Q; public: void getdata(); void calculate(); void showdata(); }q; void manufacture::getdata() { cout<<"\nEnter annual demand in units : = "; cin>>r; cout<<"\nEnter production rate of item := "; cin>>k; cout<<"\nEnter cost per set-up := "; cin>>Co; cout<<"\nEnter carrying cost := "; cin>>Cc; } void manufacture::calculate() { Q=sqrt((2*Co*r)/(Cc*(1-(r/k)))); t1=(Q/k)*365; t2=((k-r)*t1)/r; t=t1+t2; n=r/Q; } void manufacture::showdata() { cout<<"\nThe Economic batch Quantity of manufacturing model is := "<<Q; cout<<"\nPariod of Production as well as consumption is := "<<t1; cout<<"\nPeriod of consumption only := "<<t2; cout<<"\nCycle time is := "<<t; cout<<"\nNumber of setups per Year is := "<<n; } void main() { clrscr(); q.getdata(); q.calculate(); q.showdata(); getch(); } -:OUTPUT:Enter Enter Enter Enter annual demand in units : = 14000 production rate of item := 35000 cost per set-up := 500 carrying cost := 15

The Economic batch Quantity of manufacturing model is := 1247 Pariod of Production as well as consumption is := 13 Period of consumption only := 19 Cycle time is := 32 Number of setups per Year is := 11

You might also like