summaryrefslogtreecommitdiff
path: root/2741/CH5/EX5.16/Chapter5_Example16.sce
blob: 906e5084ec3db853d88a7f6bf4f326fadc9bb559 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc
clear
//Input data 
T=200;//The given temperature in K 
m=2;//Given mass of Helium in g 
M=4;//Molecular weight of helium in g 
R=8.3*10^7;//The Universal gas constant in ergs/g mol-K 

//Calculations 
E=(m*(3/2)*(R*T)/(M))/10^7;//The energy for 2 g of helium in joules 

//Output 
printf('The total random kinetic energy of 2 g of helium at 200 K is K.E = %3.0f joules',E)