blob: 113e3832c833c2714da933cc865fd5fb8abec429 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
clc
//initialisation of variables
m= 164.2 //gms
M= 60 //gms
V= 0.8 //lit
d= 1.026 //g/cc
mw= 18.02 //gms
//CALCULATIONS
M1= m/M
n= M1/V
G= V*1000*d
G1= G-m
m1= M1*1000/G1
n1= G1/mw
x= M1/(M1+n1)
y= 1-x
p= x*100
p1= y*100
P= m*100/G
//RESULTS
printf (' molarity= %.3f M',n)
printf (' \n molality= %.3f m',m1)
printf (' \n mole fraction of solute= %.4f ',x)
printf (' \n mol per cent of solute= %.2f per cent',p)
printf (' \n mol per cent of solvent= %.2f per cent',p1)
printf (' \n mol per cent acetic acid by weight= %.2f per cent',P)
|