summaryrefslogtreecommitdiff
path: root/3876/CH2/EX2.3/Ex2_3.sce
blob: f5937d4ea99aa604f97683bcce7358e284e6d748 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Chapter 2 Gases

clc;
clear;

//Initialisation of Variables
P= 100 //cm
m= 2*10**20 //molecules
N= 6*10**23
R= 0.0821 //lit atm mole^-1
T= 27 //C

//CALCULATIONS
V= m*R*(T+273)*760*100/(N*P)

//RESULTS
mprintf("Volume = %.2f cm^3",V)