summaryrefslogtreecommitdiff
path: root/1427/CH5/EX5.32/5_32.sce
diff options
context:
space:
mode:
Diffstat (limited to '1427/CH5/EX5.32/5_32.sce')
-rw-r--r--1427/CH5/EX5.32/5_32.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/1427/CH5/EX5.32/5_32.sce b/1427/CH5/EX5.32/5_32.sce
new file mode 100644
index 000000000..8f186e85b
--- /dev/null
+++ b/1427/CH5/EX5.32/5_32.sce
@@ -0,0 +1,19 @@
+//ques-5.32
+//Calculating pH of different salt solutions
+clc
+Kw=10^-14;
+//(i)0.02M NH4Cl
+Kb=1.8*10^-5;
+c=0.02;
+p1=(-log10(Kw)+log10(Kb)-log10(c))/2;
+printf("pH of Ammonium chloride solution is %.2f.\n",p1);
+
+//(ii)0.01M CH3COONa
+Ka=Kb;
+c=0.01;
+p2=(-log10(Kw)-log10(Ka)+log10(c))/2;
+printf(" pH of Sodium acetate solution is %.2f.\n",p2);
+
+//(iii)CH3COONH4
+p3=(-log10(Kw)-log10(Ka)+log10(Kb))/2;
+printf(" pH of Ammonium acetate solution is %.1f.",p3);