Saturday 28 January 2012

program to calculate gear parameters ,gear calculator program


#    program to calculate the gear parameters  #
#include<stdio.h>                                                          
#include<conio.h>                                                          
void main()                                                                
{                                                                          
        float t,d,c,s,a,k,m,w;                                              
        clrscr();                                                          
        printf("enter the value of t=");                                    
        scanf("%f",&t);                                                    
        printf("enter the value of diametral pitch=");                      
        scanf("%f",&s);                                                    
        c=3.14/s;              
                                          
        printf("Cirular Pitch=%f\n",c);                                    
                                                                           
        d=t/s;                                                              
        printf("pitch diameter=%f\n",d);                                  

         a=1/s;                                                              
        printf("addendum=%f\n",a);                                          
                                                                           
       k=1.157/s;                                                        
      printf("deddendum=%f\n",k);                                                                                                  
   
        m=(t+2)/s;                                                          
       printf("outside diameter =%f\n",m);                              
       w=2/s;                                                              
      printf("working depth=%f\n",w);                        
      getch();    
}
……………#Output#……..
enter the value of t=70
enter the value of diametral pitch=3.5
Cirular Pitch=0.897143
pitch diameter=20.000000
addendum=0.285714
deddendum=0.330571
outside diameter =20.571428
working depth=0.571429




guyz plz comment if you like this program.........

No comments:

Post a Comment