summaryrefslogtreecommitdiff
path: root/1586/CH1/EX1.1/EXP1_1.sce
blob: 47e265656d47234175d06bfd28542eef628c26f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
clc;funcprot(0);//EXAMPLE 1.1
// Initialisation of Variables
wf=30;.............//Weight of the bicycle frame made of steel in lb
rho1=7.8;...........//Density of steel in g/cm^3
rho2=2.7;..........//Density of Aluminum in g/cm^3
rho3=4.5;...........//Density of Titanium in g/cm^3
rho4=1.8;..........//Density of Carbon fiber in g/cm^3
//CALCULATIONS
vf=(wf*454)/rho1;..........//Volume of frame in cm^3
wa1=(vf*rho2)/454;.........//Weight of Aluminum in lbs
wa2=(rho2/rho1)*wf;.......//Weight of Aluminum alloy in lb
wt=(rho3/rho1)*wf;........//Weight of Titanium in lb
wc=(rho4/rho1)*wf;........//Weight of Carbon fiber in lb
disp(round(vf),"Volume of frame in cm^3:")
disp(wa1,"Weight of Aluminum in lbs:")
disp(wa2,"Weight of Aluminum alloy in lbs:")
disp(wt,"Weight of Titanium in lbs:")
disp(wc,"Weight of Carbon fiber in lbs:")
printf("As can be seen, substantial reduction in weight is possible using materials other than steel.")