summaryrefslogtreecommitdiff
path: root/1457/CH9/EX9.8/9_8.sce
blob: eb07e981434684c954aeb283a063c0f4e1896e5c (plain)
1
2
3
4
5
6
7
8
9
10
11
clc
//Initialization of variables
G=100 //lb/s
g=32.2
V2=300 //fps
V1=250 //fps
//calculations
Qh= (V2^2 -V1^2)/(2*g)
Q=Qh*G
//results
printf("Thermal energy added = %d ft lb/s",Q)