You are on page 1of 9

--> exec('C:\Users\dell\Desktop\CAÑETE_TCIE 3-1_New.

sce', -1)

Emmanuelle John J. Cañete


TCIE 3-1
1,What is the area of circle with 12 meter radius?
"r=12"
"area=%pi*r*r"
452.38934
Area is : 452.389 meters
2, What is the perimeter of circle in item No.1?
"perimeter=2*%pi*r)"
75.398224
Perimeter is : 75.3982 meters
3,Compute the volume of item No.1 if it has 20 meters height.
"h=20"
"volume=%pi*r*r*h"
9047.7868
Volume is : 9047.79 cube unit
4, If a car is moving 100km/hr, how long will it take 330km?
"A=1/100"
"B=330"
"A*B"
3.3000000
Time Taken is : 3.3 hours
5, If a=4-1,b=6+3,c=3+3, what is a3 + b2 + c4?
"a=4-1"
"a=3"
"b=6+3"
"b=9"
"c=3+3"
"c=6"
"ans=[(a^3)+(b^2)+(c^4)]"
Ans is : 1404
6, Using Item no.5, what is square root if (a2 + b2 + c2)?
11.224972
Ans is : 11.225
7,A reservoir of glycerin has a mass of 1200kg and a volume of 0.952 cu.m. Find its
a. Weight
b. unit weight
c. Density
d. Specific gravity
"m=1200"
"v=0.952"
"g=9.81"
"a.)Weight=m*g"
"w=1200*9.81"
The weight is : 11772 grams
"b.)Unit_Weight=w/v"
"UW=11.77/0.952"
The Unit weight is : 12365.5
"c.)Density=m/v"
"D=1200/0.952"
The Density is : 1260.5
"d.)Specific_Gravity=UW/g"
"SG=12.3634/9.81"
Specific Gravity is : 1260.5
8,A certain wire that weighs 8.5 g/cc has a total mass of 155 kg.
a. What is the density of the wire in kg/m3?
b. Find the volume of the wire in cubic centimeter.
c. If the total length of the wire is 1500 m, find the cross-sectional area in square millimeters.
"Wwire=8.5"
"Mwire=155"
"a.)WireDensity=[Wwire*(100/1)^3*(1/1000)]"
The density of wire is : 8500 kgm^3
"b.)Volumewire=[(Mwire*1000)/Wwire]"
The volume of wire is : 18235.3 cubic centimeter
"c.)Crosssectional=(Volumewire/(1500*100))*(10)^2"
The Cross Sectional Area of wire is : 12.1569 square millimeters
9,A hollow steel tube with an inside diameter of 100 mm must carry a tensile load of 400 kN.
Determine the outside diameter of the tube if the stress is limited to 120 MN/m2.
"P=σA"
"A=[1/4%pi]*D^2−[(1/4)%pi]*(100)^2"
"A=[1/4%pi]*(D^2−10000)"
thus
"400000=120*[(1/4%pi)*((D)^2−10000)]"
"400000=30%pi*(D)^2−300000%pi"
"D^2=[400000+300000*%pi]/30*%pi"
"D=sqrt(X/Y)"
The outside diameter of the tube is : 119.349 mm
10,What force is required to punch a 20-mm-diameter hole in a plate that is 25 mm thick?
The shear strength is 350 MN/m2
"P=PunchingForce"
"Shear=0.350"
"Area=%pi*20*25"
"P=Shear*Area"
The force required is : 549.779 kilonewtons
11,A steel shaft 3 ft long that has a diameter of 4 in is subjected to a torque of 15 kip·ft.
Determine the maximum shearing stress and the angle of twist. Use G = 12 × 106 psi.
"t=(15*1000*12)"
"d=4"
"L=3"
"J=1/32*%pi*d^4"
"G=12*10^6"
"Tmax=16*t/%pi*(d)^3"
The maximum shearing stress is : 14323.9 psi
"AngleOfTwist=[t2L/JG]"
"AOT=[(t2*L)/(J*G)]*(180/%pi)"
The angle of twist : 1.23105 degrees
12,What is the minimum diameter of a solid steel shaft that will not twist through more than 3°
in a 6-m length when subjected to a torque of 12 kN·m?
What maximum shearing stress is developed? Use G = 83 GPa.
"Degrees=3"
"l=6"
"T=12*10^3"
"G2=83*10^9"
"dmin=[%pi/32*(d)^4=T*l/G2*(%pi/60)]^1/4"
The minimum diameter is : 113.976 mm
"tmax=(16*T/%pi*0.11398^3)"
The maximum shearing stress is : 41.2729 MPa
13,A rectangle is 3 in. by 6 in. Determine the polar moment of inertia and the radius of gyration
with respect to a polar axis through one corner
"base=6"
"height=3"
"Ix=[(base*height^3)/3]"
"polarmoment=Ix+Iy"
"polarmoment=J"
The polar moment of inertia is : 270 in.^4
"GyrationRadius=sqrt(J/A)"
"GyrationRadius=K"
"K=sqrt(J/A)"
"GyrationRadius=K"
"A=base*height"
The radius of gyration about the corner is : 3.87298 in.
CODE:
printf("\nEmmanuelle John J. Cañete");
printf("\nTCIE 3-1");

printf("\n1,What is the area of circle with 12 meter radius?");


disp r=12
r=12
disp area=%pi*r*r;
area=%pi*r*r

disp(area)

printf ("Area is : %g meters\n",area);


printf("\n2, What is the perimeter of circle in item No.1?");
perimeter=2*%pi*12;
disp perimeter=2*%pi*r);
disp(perimeter)
printf ("Perimeter is : %g meters\n",perimeter);
printf("\n3,Compute the volume of item No.1 if it has 20 meters height.");
disp h=20
h=20
volume=%pi*r*r*h
disp volume=%pi*r*r*h;
disp (volume)
printf ("Volume is : %g cube unit\n",volume);
printf("\n4, If a car is moving 100km/hr, how long will it take 330km?");
A=1/100;
disp A=1/100
B=330;
disp B=330
disp A*B
disp (A*B)
printf ("Time Taken is : %g hours\n",A*B);
printf("\n5, If a=4-1,b=6+3,c=3+3, what is a3 + b2 + c4?");
disp a=4-1;
a=4-1
disp a=3
disp b=6+3;
b=6+3
disp b=9
disp c=3+3;
c=3+3
disp c=6
ans=[(a^3)+(b^2)+(c^4)]
disp ans=[(a^3)+(b^2)+(c^4)]
printf ("Ans is : %g \n",ans);
printf("\n6, Using Item no.5, what is square root if (a2 + b2 + c2)?");
Ans=sqrt(a^2+b^2+c^2)
disp (Ans)
printf ("Ans is : %g \n",Ans);
printf("\n7,A reservoir of glycerin has a mass of 1200kg and a volume of 0.952 cu.m. Find its");
printf("\na. Weight");
printf("\nb. unit weight");
printf("\nc. Density");
printf("\nd. Specific gravity");
disp m=1200;
m=1200
disp v=0.952;
v=0.952
disp g=9.81;
g=9.81
weight=m*g
disp a.)Weight=m*g
disp w=1200*9.81
w=1200*9.81
printf ("The weight is : %g grams\n",weight);
disp b.)Unit_Weight=w/v
UW=(w/v)
disp UW=11.77/0.952

printf ("The Unit weight is : %g \n",UW);


disp c.)Density=m/v
D=(m/v)
disp D=1200/0.952
printf ("The Density is : %g \n",D);
disp d.)Specific_Gravity=UW/g
SG=UW/g
disp SG=12.3634/9.81
printf ("Specific Gravity is : %g \n",SG);
printf("\n8,A certain wire that weighs 8.5 g/cc has a total mass of 155 kg.");
printf("\na. What is the density of the wire in kg/m3?");
printf("\nb. Find the volume of the wire in cubic centimeter.");
printf("\nc. If the total length of the wire is 1500 m, find the cross-sectional area in square millimeters.");
disp Wwire=8.5;
Wwire=8.5
disp Mwire=155;
Mwire=155
disp a.)WireDensity=[Wwire*(100/1)^3*(1/1000)]
DW=Wwire*(100/1)^3*(1/1000)

printf ("The density of wire is : %g kgm^3\n",DW);


disp b.)Volumewire=[(Mwire*1000)/Wwire]
VW=(Mwire*1000)/Wwire
printf ("The volume of wire is : %g cubic centimeter\n",VW);
disp c.)Crosssectional=(Volumewire/(1500*100))*(10)^2
CSA=(VW/(1500*100))*(10)^2
printf ("The Cross Sectional Area of wire is : %g square millimeters\n",CSA);
printf("\n9,A hollow steel tube with an inside diameter of 100 mm must carry a tensile load of 400 kN.");
printf("\nDetermine the outside diameter of the tube if the stress is limited to 120 MN/m2.");
disp P=σA
disp A=[1/4%pi]*D^2−[(1/4)%pi]*(100)^2
disp A=[1/4%pi]*(D^2−10000)
printf("\nthus");
disp 400000=120*[(1/4%pi)*((D)^2−10000)]
disp 400000=30%pi*(D)^2−300000%pi
disp D^2=[400000+300000*%pi]/30*%pi
X=[400000+300000*%pi]
(X)
Y=[30*%pi]
(Y)
(X/Y)
disp D=sqrt(X/Y)
OD=sqrt(X/Y)
printf ("The outside diameter of the tube is : %g mm\n",OD);
printf("\n10,What force is required to punch a 20-mm-diameter hole in a plate that is 25 mm thick?");
printf("\nThe shear strength is 350 MN/m2");
disp P=PunchingForce
Shear=0.350
disp Shear=0.350
Area=%pi*20*25
disp Area=%pi*20*25
disp P=Shear*Area
P=Shear*Area
printf ("The force required is : %g kilonewtons\n",P);
printf("\n11,A steel shaft 3 ft long that has a diameter of 4 in is subjected to a torque of 15 kip·ft.");
printf("\nDetermine the maximum shearing stress and the angle of twist. Use G = 12 × 106 psi.");

t=(15*1000*12)
t2=(15*1000*12^2)
disp t=(15*1000*12)
d=4
disp d=4
disp L=3
disp J=1/32*%pi*d^4
disp G=12*10^6
disp Tmax=16*t/%pi*(d)^3
Tmax=(16*t)/(%pi*(d)^3)
printf ("The maximum shearing stress is : %g psi\n",Tmax);
disp AngleOfTwist=[t2L/JG]
L=3
J=1/32*%pi*d^4
G=12*10^6
AOT=[(t2*L)/(J*G)]*(180/%pi)
disp AOT=[(t2*L)/(J*G)]*(180/%pi)
printf ("The angle of twist : %g degrees\n",AOT);
printf("\n12,What is the minimum diameter of a solid steel shaft that will not twist through more than 3° in a
6-m length when subjected to a torque of 12 kN·m?");
printf("\nWhat maximum shearing stress is developed? Use G = 83 GPa.");
disp Degrees=3
disp l=6
disp T=12*10^3
disp G2=83*10^9
disp dmin=[%pi/32*(d)^4=T*l/G2*(%pi/60)]^1/4
l=6;
T=12*10^3;
G2=83*10^9;
dmin=[[(T*l*32)/(%pi*G2*(%pi/60))]^(1/4)]*1000
printf ("The minimum diameter is : %g mm\n",dmin);
disp tmax=(16*T/%pi*0.11398^3)
tmax=[(16*12*1000)/(%pi*(0.11398)^3)]/1000000
printf ("The maximum shearing stress is : %g MPa\n",tmax);
printf("\n13,A rectangle is 3 in. by 6 in. Determine the polar moment of inertia and the radius of gyration
with respect to a polar axis through one corner");
disp base=6
disp height=3
base=6
height=3
Ix=[(base*height^3)/3]
disp Ix=[(base*height^3)/3]
Iy=[(height*base^3)/3]
dispIy=[(height*base^3)/3]
disp polarmoment=Ix+Iy
disp polarmoment=J
J=Ix+Iy
printf ("The polar moment of inertia is : %g in.^4\n",J);
disp GyrationRadius=sqrt(J/A)
disp GyrationRadius=K
disp K=sqrt(J/A)
disp GyrationRadius=K
disp A=base*height
A=base*height
K=sqrt(J/A)
printf ("The radius of gyration about the corner is : %g in.\n",K);

You might also like