Escolar Documentos
Profissional Documentos
Cultura Documentos
CHAPTER 1
INTRODUCTION
1.0 Introduction
Before start the computer programming individual project, Im was make some
research from the internet and book for how to write a C program to solve problem
related to materials engineering. There are so many chapter in material engineering
which is, Atomic Structure, Atomic and Ionic Arrangement, Mechanical Properties,
Strain Hardening and Annealing, Heat Treatment, Nonferrous Alloys, Ceramic
Materials, Polymers, Composites, and another else. Im was chosen Composites chapter
for this individual project. For this project students should be able to identify the
2
4 4
o d i
d
required longitudinal modulus of elasticity E = 3 y and the total tube volume
4 F L3
o4 d i4
Vc d
= L ) of a tubular composite shaft.
4
Lastly, after reviewing and study the longitudinal modulus elasticity and the
total tube volume for a tubular composite shaft formula, Im have come out with one
simple program how to determine longitudinal modulus elasticity and the total tube
volume of a tubular composite shaft by using c programming software in the program.
o4 d 4i o4 d i4
d d
Longitudinal modulus of elasticity E = 3 y Vc = )
L
4 F L3
4
i. By using this program, it can make easier to determine the required longitudinal
modulus of elasticity and the total tube volume for this tubular composite shaft.
ii. y is the midpoint deflection, and the value for y is no more than 0.0035
elasticity, I is the cross sectional area, d o is the outside diameter for a tube and
Since the program cant read the symbol it is changed to the x to replace the
symbol. And the value for the x is 3.142
iv. Lastly, user can choose either one to find the required longitudinal modulus of
elasticity or to find the total volume for the tubular composite shaft. So, with this
computer program we can save our time by just input the value to the computer
program and no need to calculate by using calculator.
1.2 Objective
CHAPTER 2
METHODOLOGY
2.0 Introduction
For the methodology will explain about the flowchart and program for this project to
complete this individual computer program project.
6
2.1 Flowchart
Start
X = 3.142,four,F,L,N,deltaY,diameter2,diameter1,E,d1,d2,Gpa,Vc,m
1. APPLIED-FORCE
2. LENGTH L
3. DELTA Y
4. DIAMETER2 = d2
5. DIAMETER1 = d1
number
No==1 F,L,DeltaY,d2,d1
1 Delta Y = 0.00035
o4 d 4i Display E
d
1 E = 3 y
No==2 4 F L3
Display Vc
L, d2, d1 Vc =
o4 d i4
d
L )
4
END
7
8
#include<stdio.h>
#include<conio.h>
#include<math.h>
int main()
int no;
float x=3.142,four,F,L,N,deltaY,diameter2,diameter1,E,d1,d2,Gpa,VC,m;
printf("\t\t\t\t\t\tMATERIAL ENGINEERING");
printf("\n\n1 is for Find ELasticity and 2 is to Determine The Total Tube Volume for
a Tubular Composite Shaft:");
back:
scanf("%d", &no);
if (no == 1)
scanf("%f", &F);
scanf("%f", &L);
printf("\n\nPlease Insert value of a tubular composite shaft delta y ,delta Y(m) =");
scanf("%f", &deltaY);
scanf("%f", &d2);
scanf("%f", &d1);
E = (4*F*pow(L,3))/(3*x*deltaY*(pow(d2,4)-pow(d1,4)));
goto back;
if (no==2)
{
10
printf("\n\nYou Choose To Find The Total Tube Volume for a Tubular Composite
Shaft");
scanf("%f", &L);
scanf("%f", &d2);
scanf("%f", &d1);
VC = (x*L/4)*(pow(d2,2)-pow(d1,2));
else
getch();
}
11
Chapter 3
Result
Figure 2 Result 1
Figure 5 Output error will be occurred when user enter the value either from 1 and
2.
Chapter 4
13
Conclusion
For the conclusion for this computer programming individual project I can
say that the program that I has develop can help student or others to find the required
longitudinal modulus of elasticity for the tubular composite shaft and total tube
volume for the tubular composite shaft. The program was achieved the objective to
ease user and save their time by using this DEV C++ software to solve the problem
related to material engineering especially in chapter Composites. After that, as we all
know the main function of program from this project and subject is to help students
to understand the function of control statement such as if, if-else, while, nested
while, printf, int no(), float, looping, and students know how to write a formula in C
program. This project also encourages student to brainstorm and used their
knowledge in computer programming in order to solve or to achieved their targe
References
APPENDIX