summaryrefslogtreecommitdiff
path: root/1247/CH2/EX2.9/example2_9.sce
blob: babe89b77e7e8a209256e1f008520ecabaf84c09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
clear;
clc;

// Stoichiometry
// Chapter 2
// Basic Chemical Calculations


// Example 2.9
// Page 22
printf("Example 2.9, Page 22 \n \n");

// solution

// basis 100kg urea
m1 = 45 //[kg] (mass of N present)
Mu = 60 // (molar mass of urea)
m2 = 14*2 //[kg] (mass of N in 1 kmol of urea)
m = (Mu/m2)*m1
printf("The sample contains "+string(m)+" percent urea.")