summaryrefslogtreecommitdiff
path: root/2741/CH5/EX5.13/Chapter5_Example13.sce
blob: 6ae29c6a5becbeb18917eee46a9a10f9d8151409 (plain)
1
2
3
4
5
6
7
8
9
10
11
clc
clear
//Input data 
T=300;//The given temperature in K
k=1.38*10^-16;//Boltzmann constant in erg/molecule-deg 

//Calculations 
E=(3/2)*k*T;//The average Kinetic energy of a molecule in ergs 

//Output
printf('The Average Kinetic energy of a molecule of a gas at 300 K is K.E = %3.4g ergs ',E)