Write a program to calculate actual draft by using C programming language.
Spinning is the process of yarn manufacturing from fiber. During yarn manufacturing various machines are involved in the production namely blow room, carding, comber, draw frame, simplex, and ring frame. Calculations play a very crucial role during the yarn manufacturing. Draft is widely used in spinning calculation. There are two draft in spinning calculation; actual draft and mechanical draft. Actual draft = Weight per yardfed/wt. per yard delivered Mechanical draft (is calculated from gearing) is determined, by use of the actual draft (required) and waste%. So, Mechanical draft is always less than actual draft. From this experiment I will find out how to calculate actual draft by using C programming language.
Introducing with programme in “C” demands some initial computer knowledge to be known. We have to start with some necessary conceptions of computer programming language and systems provided for “C” programming.
- To know the computer language .
- To learn how to work with ‘C++’
- 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:
void main( )
printf(“Enter DC,DCP,present waste=”);
Printf(“nn Actual draft=%0.2f”,A_draft);
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.
S. M. Hossen Uzzal
Monno Fabrics Ltd., Manikgonj
Founder & Editor of Textile Learner. He is a Textile Consultant, Blogger & Entrepreneur. He is working as a textile consultant in several local and international companies. He is also a contributor of Wikipedia.