summaryrefslogtreecommitdiff
path: root/1922/CH8/EX8.7/8_7.sce
blob: 696a760d00dea3a238f205c0d28ee59a7dd6e398 (plain)
1
2
3
4
5
6
7
8
9
10
11
clc
clear
//Initialization of variables
m1=121
m2=18
p1=0.0042
p2=0.0858
//calculations
massfrac= (p1*m1)/(p1*m1+p2*m2)
//results
printf("mass fractions of DMA and water are %.3f and %.3f respectively",massfrac,1-massfrac)