Sunday, May 20, 2012

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 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. 


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...
Tags:

No Comments

***www.TextileTune.blogspot.Com***

< >
Accessories (10) acrylic (1) After treatment (2) Apparel Manufacturing (1) azoic dye (1) basic dye (2) beating (1) blend dyeing (2) Blowroom (5) calculation (2) Cam (1) Campus news (5) carbon fiber (1) Carding (6) Class Lecture (1) color (5) Combing (2) cotton (3) count (3) crimp (1) defects (6) Denim Process (2) Dictionary (26) direct dye (2) disperse dye (11) dye (1) dyeing (15) dyeing auxiliaries (8) dyeing m/c (9) Ebooks (6) Experiment (3) Fabric (4) Fabric Manufacturing (12) Fabric structure (11) Factory (9) fastness (7) Fastness test (7) finishing m/c (4) FlowChart (3) foam dyeing (1) FSD (12) garment dyeing (2) Garments (3) Garments m/c (10) glass fiber (2) hemp (1) inspection (3) Interlinning (1) Interview Q (6) jute (9) jute spinning (13) knit dyeing (1) knitting m/c (21) lecture sheet (1) loom (9) Man made fiber (1) Marchandising (5) milk fiber (1) Modern Textiles (1) mordant dye (1) naphthol dye (1) Needle (2) Others (1) Pattern (2) picking (2) pigment (5) pre-treatment (11) printing amp; finishing (8) printing m/c (1) properties (6) rayon (2) reactive dye (11) Recent News (17) RingFrame (9) Sample (1) seam (1) sewing (3) shedding (3) silk (1) Simplex (6) Sinker (3) sizing (10) Spinning m/c (13) stitch (4) stop motion (4) sulpher dye (9) Technical textile (13) Testing m/c (13) textile definition (7) Textile Industry (1) Textile Physics (2) textiletechnology (18) thread (1) tie dye (1) trimming (1) TTQC (21) twill (4) twist (3) Uster m/c (1) vat dye (4) warp knitting (7) warping (8) washing (2) wastage (2) water (2) Weaving (16) weft knitting (2) Wet Process (1) Winding (11) wool (2) Yarn (30)