Friday, October 11, 2013

Program to find out Economic Order Quantity (EOQ)

Economic Order Quantity is the size of order that gives maximum economy in purchasing the materials. It is also known as Standard Order Quantity.
To know more about EOQ click here

#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
clrscr();
float eoq,co,ch,d;
cout<<"Enter the ordering cost : ";
cin>>co;
cout<<"Enter the holding cost : ";
cin>>ch;
cout<<"Enter the annual demand : ";
cin>>d;
eoq=sqrt((2*co*d)/ch);
cout<<"Economic Order Quantity = "<<eoq;
getch();
}



Wednesday, October 2, 2013

Program to find out the Torque developed in a shaft

#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
clrscr();
float p,n,t;
cout<<Enter the Power transmitting by the shaft in kilowatt : ";
cin>>p;
cout<<Enter the speed of the shaft in revolutions per minute : ";
cin>>n;
t=(p*60)/(2*3.14*n);
cout<<"The Torque developed in shaft is : "<<t<<"\t"<<"KNm";
getch();
}