summaryrefslogtreecommitdiff
path: root/3769/CH17/EX17.5/Ex17_5.sce
blob: 56fdd861dc5bd963d0bd505bd4b63ab716ec5dc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
clear
//Given
u=1.6
t=8
t1=4.5
u1=1.5
t2=6
u2=1.33

//Calculation
d=t*(1-(1/u))
d1=t1*(1-(1/u1))
d2=t2*(1-(1/u2))
D=d+d1+d2

//Result
printf("\n Position of mark from the bottom is %0.0f  cm",D)