summaryrefslogtreecommitdiff
path: root/3647/CH1/EX1.2/Ex1_2.sce
blob: b1ce80c2cb6ada011529a1c07a757d0e3cda3491 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//Distance travel calculation
clc
//initialisation of variables
w=200//tonf
d=4//tonf
h=120//tonf
v=25//mile/h
m=10//lbf/tonf
q=2240//lbf
//CALCULATIONS
F=w*m//lbf
W=(w*q)*(1/h)//lbf
T=F+W//lbf
D=d*q//lbf
A=D-T//lbf
t=158.1//sec
T1=(v/2)*(88/60)*t//ft
//RESULTS
printf('Distance travel=% f ft',T1)