blob: 70bb5733f13461613266dc87ab6a5546fdbd9846 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clear
//find the work done by exhaust gases
//given
//
w=500.
v1=9000.
v2=5400.
t=60.
V1=v1/t
V2=v2/t
hp=32.2
KE1=(1/2.)*(500/32.2)*(150**2)
KE2=(1/2.)*(500/32.2)*(90**2)
W=KE1-KE2
printf("\n \n workdone %.2f ft-lb",W)
|