AUTOMATED PROCESS PLANNING

Group Technology(GT)
It is manufacturing phylosphy similar parts are identified and grouped together to take their advantages of their similarity in manufacturing and design.
Parts Classfication and Coding
It is concern with identifying the similarities and relating this similarities to a coding system. Two types

  1. Design Attributes:-Such as geometrical shape and size
  2. Manufaturing Attributes:-Such as sequence of processing step required to make the part.

Program to reverse any number

14. Write a program to reverse any number?
#include
#include
void main()
{
int n,d r=0;
clrscr()
printf("enter the no");
scanf("%d",&n);
while(n>0)
{
d=n%10;
r=(r*10)+d;
n=n/10;
}
printf("reverse %d",r);
getch();
}


Algorithum
1.start
2.read the number n,d,r
3.calculate d=n%10
r=(r*10)+d
n=n/10
4.print r
5.stop


Result
The program is sucessfully executed and desired output is obtained

Output
enter 234
432

Evaluate Y=Xˆn

13. write a program to evaluate Y=Xˆn?
#include
#include
void main()
{
int Y=1,X,n,i=i;
clrscr();
printf("enter two numbers");
scanf("%d%d",&X&n);
while(i<=n)
{
Y=Y*X;
i++;
}
printf("%d',Y);
getch();
}

Algorithum
1.start
2.enter the values of X and n
3.check
4.calculate Y=Y*i
5.print the value of Y
6.stop


Result

The program is sucessfully executed and desired output is obtained

Output
Enter the two numbers 4 4
256


Find the factorial of a number

12.Write a program to find the factorial of a number?
#include
#include
void main()
{
int n,f=1,i=i;
clrscr();
printf("enter the no.");
scanf("%d",&n);
while(i<=n)
{
f=f*i;
i++;
}
printf("%d",f);
getch();
}


Algorithum
1.start
2.read n
3.calculate f=f*i
4.print factorial
5.stop


Result
The program is sucessfully executed and desired output is obtained

Output
Enter 2
2