diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1427/CH1/EX1.2/1_2.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '1427/CH1/EX1.2/1_2.sce')
-rw-r--r-- | 1427/CH1/EX1.2/1_2.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/1427/CH1/EX1.2/1_2.sce b/1427/CH1/EX1.2/1_2.sce new file mode 100644 index 000000000..c6bc0b47a --- /dev/null +++ b/1427/CH1/EX1.2/1_2.sce @@ -0,0 +1,14 @@ +//ques-1.2
+//Calculating hardness in three samples
+clc
+A=168;//mass of MgCO3/L (in mg)
+B1=820;//mass of Calcium Nitrate (in mg)
+B2=2;//mass of Si/L (in mg)
+C1=20;//mass of Potassium nitrate/500mL (in g)
+C2=2;//mass of CaCO3/500mL (in g)
+m1=(A/84)*100;//CaCO3 equivalent of A (in mg/L)
+m2=(B1/164)*100;//CaCO3 equivalent of B1 (in mg/L)
+m3=2*(1000/500)*1000*(100/100);//CaCO3 equivalent of C1 (in mg/L)
+printf("The hardness of sample A, B and C in ppm are %d, %d and %d\n",m1,m2,m3);
+//1 ppm = 0.07 grains/gallon
+printf(" and hardness in grains/gallon are %d, %d and %d respectively.",m1*0.07,m2*0.07,m3*0.07);
|