OBJECTIVES:
1.To know the computer language .
2.To learn how to work with ‘C++’
3.To cope with ‘C’ programming.
Sunday, May 20, 2012
8:11 PM
Application of Computer in Textile Engineering | Write a Program to Calculate Actual Draft by Using C Programming Language
Description of some code using in programming language:
- printf( )=To display a command in monitor.
- Void=Not to return the value from one function.
- getch( )=To hold the value in the monitor until getting any response from programmer.
- /n =To show contents in multiple line .
- /t =To show contents in each pages with connection.
- stdio.h = For adding header file and to input the printf ( ) programming code in the computer.
TO DISPLAY A TEXT ON A SCANER:
#include<stdio.h>
#include<conio.h>
void main( )
{
clrscr( );
float A_draft,DC,DCP,waste,T_draft;
printf(“Enter DC,DCP,present waste=”);
scanf(“%f%f%f,& DC,&DCP,&waste”);
T_draft=DC/DCP
A_draft=(T_draft*100)/(100-waste);
Printf(“nn Actual draft=%0.2f”,A_draft);
getch( );
}
CONCLUSION:
Programming in “C” is very essential for programming. This is a vital experiment for us. I hope this experiment is very helpful in our practical life in future.
Label :
Recent News
5
Textile Technology: Application of Computer in Textile Engineering | Write a Program to
Calculate Actual Draft by Using C Programming Language
OBJECTIVES: 1.To know the computer language . 2.To learn how to work with ‘C++’ 3.To cope with ‘C’ programming. Description of some cod...
Subscribe to:
Post Comments (Atom)
No Comments
***www.TextileTune.blogspot.Com***