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

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


// Example 2.1
// Page 17
printf("Example 2.1, Page 17 \n \n");

// solution

// NH4Cl
M = 14+4+35.5 // [g] (molar mass of NH4Cl)
n=5 // [mol]
m = M*n // [g]
printf("5 mol of NH4Cl = "+string(m)+" [g]")