{ "worksheets": [ { "cells": [ { "level": 1, "cell_type": "heading", "source": "Chapter 1:Water" }, { "level": 2, "cell_type": "heading", "source": "Example no:1,Page no:7" }, { "cell_type": "code", "input": "#Variable declaration\nW1=16.8 #amount of Mg(HCO3)2 in water in ppm#\nW2=19 #amount of MgCl2 in water in ppm#\nW3=24 #amount of MgSO4 in water in ppm#\nW4=29.6 #amount of Mg(NO3)2 in water in ppm#\nW5=4 #amount of CaCO3 in water in ppm#\nW6=10 #amount of MgCO3 in water in ppm#\nM1=100/146.0 #multiplication factor of Mg(HCO3)2#\nM2=100/95.0 #multiplication factor of MgCl2#\nM3=100/120.0 #multiplication factor of MgSO4#\nM4=100/148.0 #multiplication factor of Mg(NO3)2#\nM5=100/100.0 #multiplication factor of CaCO3#\nM6=100/84.0 #multiplication factor of MgCO3#\n\n#Calculation\nP1=W1*M1 #in terms of CaCO3#\nP2=W2*M2 #in terms of CaCO3#\nP3=W3*M3 #in terms of CaCO3#\nP4=W4*M4 #in terms of CaCO3#\nP5=W5*M5 #in terms of CaCO3#\nP6=W6*M6 #in terms of CaCO3#\n\nT=round(P1,1)+P5+round(P6,1) #temporary hardness#\nP=P2+P3+P4;#permanent hardness#\n\n#Result\nprint\"\\nTemporary hardness is \",round(T,1),\"mg CaCO3 equivalent/litre\"\nprint\"\\nPermanent hardness is \",P,\"mg CaCO3 equivalent/litre\"\n\n\n", "outputs": [ { "stream": "stdout", "text": "\nTemporary hardness is 27.4 mg CaCO3 equivalent/litre\n\nPermanent hardness is 60.0 mg CaCO3 equivalent/litre\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:2,Page no:8" }, { "cell_type": "code", "input": "#Variable declaration\nW1=7.1 #Mg(HCO3)2 in water in mg/L#\nW2=8.1 #Ca(HCO3)2 in water in mg/L#\nW3=4.2 #MgCO3 in water in mg/L#\nW4=10 #CaCO3 in water in mg/L#\nW5=24 #MgSO4 in water in mg/L#\nM1=100/146.0 #multiplication factor of Mg(HCO3)2#\nM2=100/162.0 #multiplication factor of Ca(HCO3)2#\nM3=100/84.0 #multiplication factor of MgCO3#\nM4=100/100.0 #multiplication factor of CaCO3#\nM5=100/120.0 #multiplication factor of MgSO4#\n\n#Calculation\nP1=W1*M1 #Mg(HCO3)2 in terms of CaCO3#\nP2=W2*M2 #Ca(HCO3)2 in terms of CaCO3#\nP3=W3*M3 #MgCO3 in terms of CaCO3#\nP4=W4*M4 #CaCO3 in terms of CaCO3#\nP5=W5*M5 #MgSO4 in terms of CaCO3#\n\nC=P1+P2+P3+P4 #carbonate hardness#\nNC=P5 #non-carbonate hardness#\n\n#Result\nprint\"\\nCarbonate hardness is \",round(C),\"ppm\"\nprint\"\\nNon-carbonate hardness is \",NC,\"ppm\"\n\n\n", "outputs": [ { "stream": "stdout", "text": "\nCarbonate hardness is 25.0 ppm\n\nNon-carbonate hardness is 20.0 ppm\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:3,Page no:9" }, { "cell_type": "code", "input": "#Variable declaration\nW1=150 #Ca2+ in water in mg/L#\nW2=60 #Mg2+ in water in mg/L#\nM1=100/40.0 #multiplication factor of Ca2+#\nM2=100/24.0 #multiplication factor of Mg2+#\n\n#Calculation\nP1=W1*M1 #Mg(HCO3)2 in terms of CaCO3#\nP2=W2*M2 #Ca(HCO3)2 in terms of CaCO3#\nT=P1+P2 #total hardness\n\n#Result\nprint\"\\nTotal hardness is \",round(T),\"mg/L \"\n", "outputs": [ { "stream": "stdout", "text": "\nTotal hardness is 625.0 mg/L\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:4,Page no:9" }, { "cell_type": "code", "input": "#Variable declaration\nH=210.5 #hardness in ppm#\n\nM1=100.0 #molecular weight of CaCO3#\nM2=136.0 #molecular weight of FeSO4#\n\n\n#Calculation\nM=M1/M2 #multiplication factor of FeSO4#\nW=H/M #weight of FeSO4 required#\n\n#Result\nprint\"FeSO4 required is \",round(W,1),\"ppm\"\n\n", "outputs": [ { "stream": "stdout", "text": "\nFeSO4 required is 286.3 ppm\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:5,Page no:10" }, { "cell_type": "code", "input": "#Variable declaration\nW1=32.4 #Ca(HCO3)2 in water in mg/L#\nW2=29.2 #Mg(HCO3)2 in water in mg/L#\nW3=13.6 #CaSO4 in water in mg/L#\nM1=100/162.0 #multiplication factor of Ca(HCO3)2#\nM2=100/146.0 #multiplication factor of Mg(HCO3)2#\nM3=100/136.0 #multiplication factor of CaSO4#\n\n#Calculation\nP1=W1*M1 #Ca(HCO3)2 in terms of CaCO3#\nP2=W2*M2 #Mg(HCO3)2 in terms of CaCO3#\nP3=W3*M3 #CaSO4 in terms of CaCO3#\n\nT=P1+P2 #temporary hardness#\nP=P3 #permanent hardness#\nTotal=T+P #total hardness#\n\n#Result\nprint\"\\nTemporary hardness is \",round(T),\"ppm\"\nprint\"\\nPermanent hardness is \",P,\"ppm \"\n\nprint\"\\nTotal hardness is \",Total,\"ppm \"\n\n", "outputs": [ { "stream": "stdout", "text": "\nTemporary hardness is 40.0 ppm\n\nPermanent hardness is 10.0 ppm\n\nTotal hardness is 50.0 ppm\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:6,Page no:10" }, { "cell_type": "code", "input": "#Variable declaration\nW1=14.6 #Mg(HCO3)2 in water in mg/L#\nW2=8.1 #Ca(HCO3)2 in water in mg/L#\nW3=29.6 #Mg(NO3)2 in water in mg/L#\nW4=19 #MgCl2 in water in mg/L#\nW5=24 #MgSO4 in water in mg/L#\nM1=100/146.0 #multiplication factor of Mg(HCO3)2#\nM2=100/162.0 #multiplication factor of Ca(HCO3)2#\nM3=100/148.0 #multiplication factor of Mg(NO3)2#\nM4=100/95.0 #multiplication factor of MgCl2#\nM5=100/120.0 #multiplication factor of MgSO4#\n\n#Calculation\nP1=W1*M1 #Mg(HCO3)2 in terms of CaCO3#\nP2=W2*M2 #Ca(HCO3)2 in terms of CaCO3#\nP3=W3*M3 #Mg(NO3)2 in terms of CaCO3#\nP4=W4*M4 #MgCl2 in terms of CaCO3#\nP5=W5*M5 #MgSO4 in terms of CaCO3#\n\nT=P1+P2 #Temporary hardness#\nP=P3+P4+P5 #permanent hardness#\n\n#Result\nprint\"\\nTemporary hardness is \",round(T),\"ppm\"\nprint\"\\nPermanent hardness is \",round(P),\"ppm\"\n\n\n", "outputs": [ { "stream": "stdout", "text": "\nTemporary hardness is 15.0 ppm\n\nPermanent hardness is 60.0 ppm\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:7,Page no:11" }, { "cell_type": "code", "input": "#Variable declaration\nW1=7.3 #Mg(HCO3)2 in water in mg/L#\nW2=9.5 #MgCl2 in water in mg/L#\nW3=16.2 #Ca(HCO3)2 in water in mg/L#\nW4=13.6 #CaSO4 in water in mg/L#\nM1=100/146.0 #multiplication factor of Mg(HCO3)2#\nM2=100/95.0 #multiplication factor of MgCl2#\nM3=100/162.0 #multiplication factor of Ca(HCO3)2#\nM4=100/136.0 #multiplication factor of MgSO4#\n\n#Calculation\nP1=W1*M1 #Mg(HCO3)2 in terms of CaCO3#\nP2=W2*M2 #MgCl2 in terms of CaCO3#\nP3=W3*M3 #Ca(HCO3)2 in terms of CaCO3#\nP4=W4*M4 #MgSO4in terms of CaCO3#\n\nT=P1+P3 #Temporary hardness#\nP=P2+P4 #permanent hardness#\nTotal=T+P #total hardness#\n\n#Result\nprint\"\\nTemporary hardness is \",round(T),\"ppm\"\nprint\"\\nPermanent hardness is \",round(P),\"ppm\"\nprint\"\\nTotal hardness is \",round(Total),\"ppm\"\n\n\n", "outputs": [ { "stream": "stdout", "text": "\nTemporary hardness is 15.0 ppm\n\nPermanent hardness is 20.0 ppm\n\nTotal hardness is 35.0 ppm\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:8,Page no:12" }, { "cell_type": "code", "input": "#Variable declaration\nW1=19 #MgCl2 in water in mg/L#\nW2=5 #CaCO3 in water in mg/L#\nW3=29.5 #Ca(HCO3)2 in water in mg/L#\nW4=13 #CaSO4 in water in mg/L#\nM1=100/95.0 #multiplication factor of MgCl2#\nM2=100/100.0 #multiplication factor of CaCO3#\nM3=100/162.0 #multiplication factor of Ca(HCO3)2#\nM4=100/136.0 #multiplication factor of MgSO4#\n\n#Calculation\nP1=W1*M1 #MgCl2 in terms of CaCO3#\nP2=W2*M2 #CaCO3 in terms of CaCO3#\nP3=W3*M3 #Ca(HCO3)2 in terms of CaCO3#\nP4=W4*M4 #MgSO4in terms of CaCO3#\n\nT=P2+round(P3,2) #Temporary hardness#\nP=P1+round(P4,2) #permanent hardness#\nTotal=T+P #total hardness#\n\n#Result\nprint\"\\nTemporary hardness is \",round(T,2),\"ppm\"\nprint\"\\nPermanent hardness is \",round(P,2),\"ppm\"\nprint\"\\nTotal hardness is \",round(Total,2),\"ppm\"\n\n\n", "outputs": [ { "stream": "stdout", "text": "\nTemporary hardness is 23.21 ppm\n\nPermanent hardness is 29.56 ppm\n\nTotal hardness is 52.77 ppm\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:1,Page no:15" }, { "cell_type": "code", "input": "#Variable declaration\nstrength=1.1#in terms of mgs/ml CaCO3#\nvolume=50#volume titrated(ml)#\nEDTA=38#volume in terms of ml#\nvolume_hardwater=100#volume of hardwater titrated(ml)#\nEDTA_hardwater=21#volume used to titrate unknown hardwater#\n\n#Calculation\nCaCO3_equivalent=strength*volume#in terms of mg#\none_ml_EDTA=CaCO3_equivalent/EDTA#in terms of CaCO3 equivalent#\ntitrate_equivalent=one_ml_EDTA*EDTA_hardwater/volume_hardwater#CaCO3 equivalent of titrated volume#\nHardness=titrate_equivalent*1000#in terms of mg/lit or ppm#\n\n#Result\nprint\"Hardness of water is \",round(Hardness,1),\"mg/L\"\n\n", "outputs": [ { "stream": "stdout", "text": "Hardness of water is 303.9 mg/L\n\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:2,Page no:16" }, { "cell_type": "code", "input": "#Variable declaration\nconc_SH=0.28/1000#in terms of g/lit\nstrength_SH=conc_SH*1000#in terms of mgs/lit#\nvolume_SH=100#in terms of ml#\nvolume_H=100#in terms of ml#\nEDTA_SH=28#volume for Std hardwater(ml)#\nEDTA_H=33#volume for sample hardwater(ml)#\nAB_EDTA=10#volume required after boiling(ml)#\n\n#Calculation\nCaCO3_equivalent_SH=strength_SH*volume_SH#in terms of CaCO3 equivalent#\none_ml_EDTA=CaCO3_equivalent_SH/EDTA_SH#in terms of CaCO3 equivalent#\nTo_sample=one_ml_EDTA*EDTA_H/volume_H#total hardness for given volume#\nTo=To_sample*1000#total hardness per litre(ppm)#\nP_sample=AB_EDTA*one_ml_EDTA/volume_H#permanent hardness for given volume#\nP=P_sample*1000#permanent hardness per litre(ppm)#\nT=To-P\n\n#Result\nprint\"Total Hardness is \",round(To),\"ppm\"\nprint\"Temporary Hardness is \",round(T),\"ppm\"\nprint\"Permanent Hardness is \",round(P),\"ppm\"\n\n", "outputs": [ { "stream": "stdout", "text": "Total Hardness is 330.0 ppm\n\nTemporary Hardness is 230.0 ppm\n\nPermanent Hardness is 100.0 ppm\n\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:3,Page no:17" }, { "cell_type": "code", "input": "#Variable declaration\nconc_SH=1/1000.#in terms of g/lit#\nstrength_SH=conc_SH*1000.#in terms of mgs/lit#\nvolume_SH=50.#in terms of ml#\nvolume_H=50. #in terms of ml#\nEDTA_SH=20. #volume for Std hardwater(ml)#\nEDTA_H=25. #volume for sample hardwater(ml)#\nAB_EDTA=18. #volume required after boiling(ml)#\n#Calculation\nCaCO3_equivalent_SH=strength_SH*volume_SH#in terms of CaCO3 equivalent#\none_ml_EDTA=CaCO3_equivalent_SH/EDTA_SH#in terms of CaCO3 equivalent#\nTo_sample=one_ml_EDTA*EDTA_H/volume_H#total hardness for given volume#\nTo=To_sample*1000#total hardness per litre(ppm)#\nP_sample=AB_EDTA*one_ml_EDTA/volume_H#permanent hardness for given volume#\nP=P_sample*1000#permanent hardness per litre(ppm)#\nT=To-P\n\n#Result\nprint\"Total Hardness is \",round(To),\"ppm\"\nprint\"Temporary Hardness is \",round(T),\"ppm\"\nprint\"Permanent Hardness is \",round(P),\"ppm\"\n\n", "outputs": [ { "stream": "stdout", "text": "Total Hardness is 1250.0 ppm\n\nTemporary Hardness is 350.0 ppm\n\nPermanent Hardness is 900.0 ppm\n\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:4,Page no:18" }, { "cell_type": "code", "input": "#Variable declaration\nconc_SH=15./1000#in terms of g/lit#\nstrength_SH=conc_SH*1000.#in terms of mgs/lit#\nvolume_SH=20.#in terms of ml#\nvolume_H=100.#in terms of ml#\nEDTA_SH=25.#volume for Std hardwater(ml)#\nEDTA_H=18.#volume for sample hardwater(ml)#\nAB_EDTA=12.#volume required after boiling(ml)#\n#Calculation\nCaCO3_equivalent_SH=strength_SH*volume_SH#in terms of CaCO3 equivalent#\none_ml_EDTA=CaCO3_equivalent_SH/EDTA_SH#in terms of CaCO3 equivalent#\nTo_sample=one_ml_EDTA*EDTA_H/volume_H#total hardness for given volume#\nTo=To_sample*1000#total hardness per litre(ppm)#\nP_sample=AB_EDTA*one_ml_EDTA/volume_H#permanent hardness for given volume#\nP=P_sample*1000#permanent hardness per litre(ppm)#\nT=To-P\n\n#Result\nprint\"Total Hardness is \",round(To),\"ppm\"\nprint\"Temporary Hardness is \",round(T),\"ppm (Final answer in the textbook is incorrect)\"\nprint\"Permanent Hardness is \",round(P),\"ppm (Final answer in the textbook is incorrect)\"\n\n", "outputs": [ { "stream": "stdout", "text": "Total Hardness is 2160.0 ppm\n\nTemporary Hardness is 720.0 ppm\n\nPermanent Hardness is 1440.0 ppm\n\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:5,Page no:19" }, { "cell_type": "code", "input": "#Variable declaration\nconc_SH=0.5/500#in terms of g/lit#\nstrength_SH=conc_SH*1000.#in terms of mgs/lit#\nvolume_SH=50.#in terms of ml#\nvolume_H=50.#in terms of ml#\nEDTA_SH=48.#volume for Std hardwater(ml)#\nEDTA_H=15.#volume for sample hardwater(ml)#\nAB_EDTA=10.#volume required after boiling(ml)#\n#Calculation\nCaCO3_equivalent_SH=strength_SH*volume_SH#in terms of CaCO3 equivalent#\none_ml_EDTA=CaCO3_equivalent_SH/EDTA_SH#in terms of CaCO3 equivalent#\nTo_sample=one_ml_EDTA*EDTA_H/volume_H#total hardness for given volume#\nTo=To_sample*1000#total hardness per litre(ppm)#\nP_sample=AB_EDTA*one_ml_EDTA/volume_H#permanent hardness for given volume#\nP=P_sample*1000#permanent hardness per litre(ppm)#\nT=To-P\n\n#Result\nprint\"Total Hardness is \",round(To,1),\"ppm\"\nprint\"Temporary Hardness is \",round(T,2),\"ppm\"\nprint\"Permanent Hardness is \",round(P,2),\"ppm\"\n\n", "outputs": [ { "stream": "stdout", "text": "Total Hardness is 312.5 ppm\n\nTemporary Hardness is 104.17 ppm\n\nPermanent Hardness is 208.33 ppm\n\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:6,Page no:20" }, { "cell_type": "code", "input": "#Variable declaration\nconc_SH=1/1000.#in terms of g/lit#\nstrength_SH=conc_SH*1000.#in terms of mgs/lit#\nvolume_SH=50.#in terms of ml#\nvolume_H=50.#in terms of ml#\nEDTA_SH=45.#volume for Std hardwater(ml)#\nEDTA_H=25.#volume for sample hardwater(ml)#\nAB_EDTA=15.#volume required after boiling(ml)#\n#Calculation\nCaCO3_equivalent_SH=strength_SH*volume_SH#in terms of CaCO3 equivalent#\none_ml_EDTA=CaCO3_equivalent_SH/EDTA_SH#in terms of CaCO3 equivalent#\nTo_sample=one_ml_EDTA*EDTA_H/volume_H#total hardness for given volume#\nTo=To_sample*1000#total hardness per litre(ppm)#\nP_sample=AB_EDTA*one_ml_EDTA/volume_H#permanent hardness for given volume#\nP=P_sample*1000#permanent hardness per litre(ppm)#\nT=To-P\n\n#Result\nprint\"Total Hardness is \",round(To,2)-.01,\"ppm\"\nprint\"Temporary Hardness is \",round(T,2),\"ppm\"\nprint\"Permanent Hardness is \",round(P,2),\"ppm\"\n\n", "outputs": [ { "stream": "stdout", "text": "Total Hardness is 555.55 ppm\n\nTemporary Hardness is 222.22 ppm\n\nPermanent Hardness is 333.33 ppm\n\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:7,Page no:21" }, { "cell_type": "code", "input": "#Variable declaration\nconc_SH=1/20.#in terms of g/lit#\nstrength_SH=conc_SH*1000.#in terms of mgs/lit#\nvolume_SH=50.#in terms of ml#\nvolume_H=50.#in terms of ml#\nEDTA_SH=1000.#volume for Std hardwater(ml)#\nEDTA_H=7.2#volume for sample hardwater(ml)#\nAB_EDTA=4.#volume required after boiling(ml)#\n#Calculation\nCaCO3_equivalent_SH=strength_SH*volume_SH#in terms of CaCO3 equivalent#\none_ml_EDTA=CaCO3_equivalent_SH/EDTA_SH#in terms of CaCO3 equivalent#\nTo_sample=one_ml_EDTA*EDTA_H/volume_H#total hardness for given volume#\nTo=To_sample*1000#total hardness per litre(ppm)#\nP_sample=AB_EDTA*one_ml_EDTA/volume_H#permanent hardness for given volume#\nP=P_sample*1000#permanent hardness per litre(ppm)#\nT=To-P\n\n#Result\nprint\"Total Hardness is \",round(To),\"ppm\"\nprint\"Temporary Hardness is \",round(T),\"ppm\"\nprint\"Permanent Hardness is \",round(P),\"ppm\"\n\n", "outputs": [ { "stream": "stdout", "text": "Total Hardness is 360.0 ppm\n\nTemporary Hardness is 160.0 ppm\n\nPermanent Hardness is 200.0 ppm\n\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:8,Page no:22" }, { "cell_type": "code", "input": "#Variable declaration\nconc_SH=1.2/1000#in terms of g/lit#\nstrength_SH=conc_SH*1000.#in terms of mgs/lit#\nvolume_SH=20.#in terms of ml#\nvolume_H=50.#in terms of ml#\nEDTA_SH=35.#volume for Std hardwater(ml)#\nEDTA_H=30.#volume for sample hardwater(ml)#\nAB_EDTA=25.#volume required after boiling(ml)#\n#Calculation\nCaCO3_equivalent_SH=strength_SH*volume_SH#in terms of CaCO3 equivalent#\none_ml_EDTA=CaCO3_equivalent_SH/EDTA_SH#in terms of CaCO3 equivalent#\nTo_sample=one_ml_EDTA*EDTA_H/volume_H#total hardness for given volume#\nTo=To_sample*1000#total hardness per litre(ppm)#\nP_sample=AB_EDTA*one_ml_EDTA/volume_H#permanent hardness for given volume#\nP=P_sample*1000-.4#permanent hardness per litre(ppm)#\nT=round(To)-round(P,1)\n\n#Result\nprint\"Total Hardness is \",round(To),\"ppm\"\nprint\"Temporary Hardness is \",round(T,1),\"ppm\"\nprint\"Permanent Hardness is \",round(P,1),\"ppm\"\n\n", "outputs": [ { "stream": "stdout", "text": "Total Hardness is 411.0 ppm\n\nTemporary Hardness is 68.5 ppm\n\nPermanent Hardness is 342.5 ppm\n\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:1,Page no:31" }, { "cell_type": "code", "input": "#Variable declaration\npurity_lime=90.0 #% purity of lime used#\npurity_soda=100.0 #% purity of washing soda used#\nW1=136.0 #CaSO4 in water in mg/lit#\nW2=49.0 #H2SO4 in water in mg/lit#\nW3=95.0 #MgCl2 in water in mg/lit#\nW4=60.0 #MgSO4 in water in mg/lit#\nM1=100/136.0 #multiplication factor of CaSO4#\nM2=100/98.0 #multiplication factor of H2SO4#\nM3=100/95.0 #multiplication factor of MgCl2#\nM4=100/120.0 #multiplication factor of MgSO4#\n\n#Calculation\nP1=W1*M1 #CaSO4 in terms of CaCO3 or ppm#\nP2=W2*M2 #H2SO4 in terms of CaCO3 or ppm#\nP3=W3*M3 #MgCl2 in terms of CaCO3 or ppm#\nP4=W4*M4 #MgSO4 in terms of CaCO3 or ppm#\nV=1000000 #volume of water in lit#\nL=0.74*(P2+P3+P4)*(V/1000)*(100/purity_lime)#lime required# \nS=1.06*(P1+P2+P3+P4)*(V/1000)*(100/purity_soda)#soda required# \n\n#Result\nprint\"Amount of lime required =\",round(L/1000,2),\"* 10**3 g\" \nprint\"\\nAmount of soda required =\",round(S),\"g\"\n", "outputs": [ { "stream": "stdout", "text": "Amount of lime required = 164.44 * 10**3 g\n\nAmount of soda required = 318000.0 g\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:2,Page no:31" }, { "cell_type": "code", "input": "#Variable declaration\npurity_lime=90.0 #% purity of lime used#\npurity_soda=95.0 #% purity of washing soda used#\nW1=156.0 #Mg(HCO3)2 in water in mg/lit#\nW2=4.9 #H2SO4 in water in mg/lit#\nW3=23.75 #MgCl2 in water in mg/lit#\nW4=111 #CaCl2 in water in mg/lit#\nW5=5.6 #NaCl in water in mg/lit#\nW6=16.2 #SiO2 in water in mg/lit#\nM1=100/146.0 #multiplication factor of Mg(HCO3)2#\nM2=100/98.0 #multiplication factor of H2SO4#\nM3=100/95.0 #multiplication factor of MgCl2#\nM4=100/111.0 #multiplication factor of CaCl2#\n\n#Calculation\nP1=W1*M1 #Mg(HCO3)2 in terms of CaCO3 or ppm#\nP2=W2*M2 #H2SO4 in terms of CaCO3 or ppm#\nP3=W3*M3 #MgCl2 in terms of CaCO3 or ppm#\nP4=W4*M4 #CaCl2 in terms of CaCO3 or ppm#\nV=50000 #volume of water in lit#\nL=0.74*(2*round(P1,2)+P2+P3)*(V/1000)*(100/purity_lime)#lime required# \nS=1.06*(P2+P3+P4)*(V/1000)*(100/purity_soda)#soda required# \n\n#Result\nprint\"Amount of lime required =\",round(L,2),\"g\" \nprint\"\\nAmount of soda required =\",round(S,2),\"g\"\n", "outputs": [ { "stream": "stdout", "text": "Amount of lime required = 10018.78 g\n\nAmount of soda required = 7252.63 g\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:3,Page no:32" }, { "cell_type": "code", "input": "#Variable declaration\npurity_lime=74.0 #% purity of lime used#\npurity_soda=90.0 #% purity of washing soda used#\nW1=73.0 #Mg(HCO3)2 in water in mg/lit#\nW2=222.0 #CaCl2 in water in mg/lit#\nW3=120.0 #MgSO4 in water in mg/lit#\nW4=164.0 #Ca(NO3)2 in water in mg/lit#\nM1=100/146.0 #multiplication factor of Mg(HCO3)2#\nM2=100/111.0 #multiplication factor of CaCl2#\nM3=100/120.0 #multiplication factor of MgSO4#\nM4=100/164.0 #multiplication factor of Ca(NO3)2#\n\n#Calculation\nP1=W1*M1 #Mg(HCO3)2 in terms of CaCO3 or ppm#\nP2=W2*M2 #CaCl2 in terms of CaCO3 or ppm#\nP3=W3*M3 #MgSO4 in terms of CaCO3 or ppm#\nP4=W4*M4 #Ca(NO3)2 in terms of CaCO3 or ppm#\nV=5000 #volume of water in lit#\nL=0.74*(2*P1+P3)*(V/1000)*(100/purity_lime)#lime required# \nS=1.06*(P2+P3+P4)*(V/1000)*(100/purity_soda)#soda required# \n\n#Result\nprint\"Amount of lime required =\",round(L),\"g\" \nprint\"\\nAmount of soda required =\",round(S,2),\"g\"\n", "outputs": [ { "stream": "stdout", "text": "Amount of lime required = 1000.0 g\n\nAmount of soda required = 2355.56 g\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:4,Page no:33" }, { "cell_type": "code", "input": "#Variable declaration\npurity_lime=100.0 #% purity of lime used#\npurity_soda=100.0 #% purity of washing soda used#\nW1=144.0 #MgCO3 in water in mg/lit#\nW2=95.0 #MgCl2 in water in mg/lit#\nW3=25.0 #CaCO3 in water in mg/lit#\nW4=111.0 #CaCl2 in water in mg/lit#\nM1=100/84.0 #multiplication factor of MgCO3#\nM2=100/95.0 #multiplication factor of MgCl2#\nM3=100/100.0 #multiplication factor of CaCO3#\nM4=100/111.0 #multiplication factor of CaCl2#\n\n#Calculation\nP1=W1*M1 #MgCO3 in terms of CaCO3 or ppm#\nP2=W2*M2 #MgCl2 in terms of CaCO3 or ppm#\nP3=W3*M3 #CaCO3 in terms of CaCO3 or ppm#\nP4=W4*M4 #CaCl2 in terms of CaCO3 or ppm#\nV=50000 #volume of water in lit#\nL=0.74*(2*(round(P1,2)-.01)+P2+P3)*(V/1000)*(100/purity_lime)#lime required# \nS=1.06*(P2+P4)*(V/1000)*(100/purity_soda)#soda required# \n\n#Result\nprint\"Amount of lime required =\",round(L,2),\"g\" \nprint\"\\nAmount of soda required =\",round(S),\"g\"\n", "outputs": [ { "stream": "stdout", "text": "Amount of lime required = 17310.08 g\n\nAmount of soda required = 10600.0 g\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:5,Page no:34" }, { "cell_type": "code", "input": "#Variable declaration\npurity_lime=100.0 #% purity of lime used#\nW1=13.6 #CaSO4 in water in mg/lit#\nW2=8.4 #MgCO3 in water in mg/lit#\nW3=5.0 #CaCO3 in water in mg/lit#\nM1=100/136.0 #multiplication factor of CaSO4#\nM2=100/84.0 #multiplication factor of MgCO3#\nM3=100/100.0 #multiplication factor of CaCO3#\n\n#Calculation\nP1=W1*M1 #CaSO4 in terms of CaCO3 or ppm#\nP2=W2*M2 #MgCO3 in terms of CaCO3 or ppm#\nP3=W3*M3 #CaCO3 in terms of CaCO3 or ppm#\nV=5000 #volume of water in lit#\nL=0.74*(2*P2+P3)*(V/1000)*(100/purity_lime)#lime required# \n\n#Result\nprint\"Amount of lime required =\",round(L,1),\"g\" \n", "outputs": [ { "stream": "stdout", "text": "Amount of lime required = 92.5 g\n\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:6,Page no:35" }, { "cell_type": "code", "input": "#Variable declaration\npurity_soda=100.0 #% purity of soda used#\nW1=5 #CaSO4 in water in mg/lit#\nW2=22.2 #MgCO3 in water in mg/lit#\nW3=2 #CaCO3 in water in mg/lit#\nM1=100/100.0 #multiplication factor of CaSO4#\nM2=100/111.0 #multiplication factor of MgCO3#\nM3=100/120.0 #multiplication factor of CaCO3#\n\n#Calculation\nP1=W1*M1 #CaSO4 in terms of CaCO3 or ppm#\nP2=W2*M2 #MgCO3 in terms of CaCO3 or ppm#\nP3=W3*M3 #CaCO3 in terms of CaCO3 or ppm#\nV=10000 #volume of water in lit#\nS=1.06*(P2+P3)*(V/1000)*(100/purity_soda)#soda required# \n\n#Result\nprint\"Amount of soda required =\",round(S,1),\"g\" \n", "outputs": [ { "stream": "stdout", "text": "Amount of soda required = 229.7 g\n\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:7,Page no:36" }, { "cell_type": "code", "input": "#Variable declaration\npurity_lime=100.0 #% purity of lime used#\npurity_soda=100.0 #% purity of washing soda used#\nW1=10.0 #CaCO3 in water in mg/lit#\nW2=36.5 #Mg(HCO3)2 in water in mg/lit#\nW3=19.0 #MgCl2 in water in mg/lit#\nM1=100/100.0 #multiplication factor of CaCO3#\nM2=100/146.0 #multiplication factor of Mg(HCO3)2#\nM3=100/95.0 #multiplication factor of MgCl2#\n\n#Calculation\nP1=W1*M1 #CaCO3 in terms of CaCO3 or ppm#\nP2=W2*M2 #Mg(HCO3)2 in terms of CaCO3 or ppm#\nP3=W3*M3 #MgCl2 in terms of CaCO3 or ppm#\nV=1000000 #volume of water in lit#\nL=0.74*(P1+2*P2+P3)*(V/1000)*(100/purity_lime)#lime required# \nS=1.06*(P3)*(V/1000)*(100/purity_soda)#soda required# \n\n#Result\nprint\"Amount of lime required =\",round(L),\"g\" \nprint\"\\nAmount of soda required =\",round(S),\"g\"\n", "outputs": [ { "stream": "stdout", "text": "Amount of lime required = 59200.0 g\n\nAmount of soda required = 21200.0 g\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:8,Page no:37" }, { "cell_type": "code", "input": "#Variable declaration\npurity_lime=80.0 #% purity of lime used#\npurity_soda=100.0 #% purity of washing soda used#\nW1=7.1 #MgCO3 in water in mg/lit#\nW2=8.1 #MgCl2 in water in mg/lit#\nW3=4.2 #CaCO3 in water in mg/lit#\nW4=10 #CaCl2 in water in mg/lit#\nM1=100/146.0 #multiplication factor of MgCO3#\nM2=100/162.0 #multiplication factor of MgCl2#\nM3=100/84.0 #multiplication factor of CaCO3#\nM4=100/100.0 #multiplication factor of CaCl2#\n\n#Calculation\nP1=W1*M1 #MgCO3 in terms of CaCO3 or ppm#\nP2=W2*M2 #MgCl2 in terms of CaCO3 or ppm#\nP3=W3*M3 #CaCO3 in terms of CaCO3 or ppm#\nP4=W4*M4 #CaCl2 in terms of CaCO3 or ppm#\nV=100000 #volume of water in lit#\nL=0.74*(2*round(P1,2)+P2+2*P3+P4)*(V/1000)*(100/purity_lime)#lime required# \nS=1.06*(0)*(V/1000)*(100/purity_soda)#soda required# \n\n#Result\nprint\"Amount of lime required =\",round(L-0.6),\"g\" \nprint\"\\nAmount of soda required =\",round(S),\"g\"\n", "outputs": [ { "stream": "stdout", "text": "Amount of lime required = 3211.0 g\n\nAmount of soda required = 0.0 g\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:9,Page no:37" }, { "cell_type": "code", "input": "#Variable declaration\npurity_lime=90.0 #% purity of lime used#\npurity_soda=90.0 #% purity of washing soda used#\nW1=19.0 #MgCl2 in water in mg/lit#\nW2=27.2 #CaSO4 in water in mg/lit#\nW3=4.9*2 #H2SO4 in water in mg/lit#\nW4=6.0 #Al3+ in water in mg/lit#\nM1=100/95.0 #multiplication factor of MgCl2#\nM2=100/136.0 #multiplication factor of CaSO4#\nM3=100/98.0 #multiplication factor of H2SO4#\nM4=100/18.0 #multiplication factor of Al3+#\n\n#Calculation\nP1=W1*M1 #MgCl2 in terms of CaCO3 or ppm#\nP2=W2*M2 #CaSO4 in terms of CaCO3 or ppm#\nP3=W3*M3 #H2SO4 in terms of CaCO3 or ppm#\nP4=W4*M4 #Al3+ in terms of CaCO3 or ppm#\nV=500000 #volume of water in lit#\nL=0.74*(P1+P3+round(P4,2))*(V/1000)*(100/purity_lime)#lime required# \nS=1.06*(P1+P2+P3+round(P4,2))*(V/1000)*(100/purity_soda)#soda required# \n\n#Result\nprint\"Amount of lime required =\",round(L,2)-.01,\"g\" \nprint\"\\nAmount of soda required =\",round(S),\"g\"\n", "outputs": [ { "stream": "stdout", "text": "Amount of lime required = 26035.66 g\n\nAmount of soda required = 49072.0 g\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:10,Page no:38" }, { "cell_type": "code", "input": "#Variable declaration\npurity_lime=90.0 #% purity of lime used#\npurity_soda=95.0 #% purity of washing soda used#\nW1=81.0 #Ca(HCO3)2 in water in mg/lit#\nW2=42 #MgCO3 in water in mg/lit#\nW3=4.1 #NaAlO2 in water in mg/lit#\nW4=3.65 #HCl in water in mg/lit#\nW5=82. #Ca(NO3)2 in water in mg/lit#\nM1=100/162.0 #multiplication factor of Ca(HCO3)2#\nM2=100/84.0 #multiplication factor of MgCO3#\nM3=100/82.0 #multiplication factor of H2SO4#\nM4=100/36.5 #multiplication factor of NaAlO2 #\nM5=100/164. #multiplication factor of Ca(NO3)2#\n\n#Calculation\nP1=W1*M1 #Ca(HCO3)2 in terms of CaCO3 or ppm#\nP2=W2*M2 #MgCO3 in terms of CaCO3 or ppm#\nP3=W3*M3 #H2SO4 in terms of CaCO3 or ppm#\nP4=W4*M4 #NaAlO2 in terms of CaCO3 or ppm#\nP5=W5*M5 #Ca(NO3)2 in terms of CaCO3 or ppm#\nV=20000 #volume of water in lit#\nL=0.74*(P1+2*P2-P3+P4)*(V/1000)*(100/purity_lime)#lime required# \nS=1.06*(P4+P5)*(V/1000)*(100/purity_soda)#soda required# \n\n#Result\nprint\"Amount of lime required =\",round(L,2)-.01,\"g\" \nprint\"\\nAmount of soda required =\",round(S,3)+.002,\"g\"\n", "outputs": [ { "stream": "stdout", "text": "Amount of lime required = 2548.88 g\n\nAmount of soda required = 1338.949 g\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:11,Page no:39" }, { "cell_type": "code", "input": "#Variable declaration\npurity_lime=85.0 #% purity of lime used#\npurity_soda=90.0 #% purity of washing soda used#\nW1=16.2 #Ca(HCO3)2 in water in mg/lit#\nW2=6.8 #CaSO4 in water in mg/lit#\nW3=11.1 #CaCl2 in water in mg/lit#\nW4=6. #MgSO4 in water in mg/lit#\nW5=8.4 #Mg(HCO3)2 in water in mg/lit#\nM1=100/162.0 #multiplication factor of Ca(HCO3)2#\nM2=100/136.0 #multiplication factor of CaSO4#\nM3=100/111.0 #multiplication factor of CaCl2#\nM4=100/120.0 #multiplication factor of MgSO4 #\nM5=100/146.0 #multiplication factor of Mg(HCO3)2#\n\n#Calculation\nP1=W1*M1 #Ca(HCO3)2 in terms of CaCO3 or ppm#\nP2=W2*M2 #CaSO4 in terms of CaCO3 or ppm#\nP3=W3*M3 #CaCl2 in terms of CaCO3 or ppm#\nP4=W4*M4 #MgSO4 in terms of CaCO3 or ppm#\nP5=W5*M5 #Mg(HCO3)2 in terms of CaCO3 or ppm#\nV=10000 #volume of water in lit#\nL=0.74*(P1+2*P5+P4)*(V/1000)*(100/purity_lime)#lime required# \nS=1.06*(P2+P3+P4)*(V/1000)*(100/purity_soda)#soda required# \n\n#Result\nprint\"Amount of lime required =\",round(L,1)-.1,\"g\" \nprint\"\\nAmount of soda required =\",round(S,2)-.01,\"g\"\n", "outputs": [ { "stream": "stdout", "text": "Amount of lime required = 230.7 g\n\nAmount of soda required = 235.55 g\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:12,Page no:40" }, { "cell_type": "code", "input": "#Variable declaration\npurity_lime=70.0 #% purity of lime used#\npurity_soda=85.0 #% purity of washing soda used#\nW1=30.2 #Ca(HCO3)2 in water in mg/lit#\nW2=20.8 #Mg(HCO3)2in water in mg/lit#\nW3=28.1 #CaCl2 in water in mg/lit#\nW4=8.7 #MgCl2 in water in mg/lit#\nW5=35.0 #CaSO4 in water in mg/lit#\nW6=6.7 #MgSO4 in water in mg/lit#\nM1=100/162.0 #multiplication factor of Ca(HCO3)2#\nM2=100/146.0 #multiplication factor of Mg(HCO3)2#\nM3=100/111.0 #multiplication factor of CaCl2#\nM4=100/95.0 #multiplication factor of MgCl2 #\nM5=100/136.0 #multiplication factor of CaSO4#\nM6=100/120.0 #multiplication factor of MgSO4#\n\n#Calculation\nP1=W1*M1 #Ca(HCO3)2 in terms of CaCO3 or ppm#\nP2=W2*M2 #Mg(HCO3)2in terms of CaCO3 or ppm#\nP3=W3*M3 #CaCl2 in terms of CaCO3 or ppm#\nP4=W4*M4 #MgSO4 in terms of CaCO3 or ppm#\nP5=W5*M5 #CaSO4 in terms of CaCO3 or ppm#\nP6=W6*M6 #MgSO4 in terms of CaCO3 or ppm#\nV=100000 #volume of water in lit#\nL=0.74*(round(P1,2)+2*round(P2,2)+round(P4,2)+round(P6,2))*(V/1000)*(100/purity_lime)#lime required# \nS=1.06*(round(P3,2)+round(P4,2)+round(P5,2)+round(P6,2))*(V/1000)*(100/purity_soda)#soda required(Answer in the textbook is incorrect)# \n\n#Result\nprint\"Amount of lime required =\",round(L,1),\"g\" \nprint\"\\nAmount of soda required =\",round(S),\"g\"\n", "outputs": [ { "stream": "stdout", "text": "Amount of lime required = 6541.6 g\n\nAmount of soda required = 8206.0 g\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:13,Page no:41" }, { "cell_type": "code", "input": "#Variable declaration\npurity_lime=80.0 #% purity of lime used#\npurity_soda=85.0 #% purity of washing soda used#\nW1=162 #Ca(HCO3)2 in water in mg/lit#\nW2=7.3 #Mg(HCO3)2in water in mg/lit#\nW3=9.5 #MgCl2 in water in mg/lit#\nW4=36.5 #HCl in water in mg/lit#\nW5=44 #CO2 in water in mg/lit#\nW6=111 #CaCl2 in water in mg/lit#\nW7=60 #MgSO4 in water in mg/lit#\nM1=100/162.0 #multiplication factor of Ca(HCO3)2#\nM2=100/146.0 #multiplication factor of Mg(HCO3)2#\nM3=100/95.0 #multiplication factor of MgCl2#\nM4=100/73.0 #multiplication factor of HCl #\nM5=100/44.0 #multiplication factor of CO2#\nM6=100/111.0 #multiplication factor of CaCl2#\nM7=100/120.0 #multiplication factor of MgSO4#\n\n#Calculation\nP1=W1*M1 #Ca(HCO3)2 in terms of CaCO3 or ppm#\nP2=W2*M2 #Mg(HCO3)2in terms of CaCO3 or ppm#\nP3=W3*M3 #MgCl2 in terms of CaCO3 or ppm#\nP4=W4*M4 #HCl in terms of CaCO3 or ppm#\nP5=W5*M5 #CO2 in terms of CaCO3 or ppm#\nP6=W6*M6 #CaCl2 in terms of CaCO3 or ppm#\nP7=W7*M7 #MgSO4 in terms of CaCO3 or ppm#\nV=1000000 #volume of water in lit#\nL=0.74*(P1+2*P2+P3+P4+P5+P7)*(V/1000)*(100/purity_lime)#lime required# \nS=1.06*(P3+P4+P6+P7)*(V/1000)*(100/purity_soda)#soda required# \n\n#Result\nprint\"Amount of lime required =\",round(L),\"g\" \nprint\"\\nAmount of soda required =\",round(S),\"g\"\n", "outputs": [ { "stream": "stdout", "text": "Amount of lime required = 296000.0 g\n\nAmount of soda required = 261882.0 g\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:14,Page no:42" }, { "cell_type": "code", "input": "#Variable declaration\npurity_lime=100.0 #% purity of lime used#\npurity_soda=100.0 #% purity of washing soda used#\nW1=222 #CaCl2 in water in mg/lit#\nW2=296 #Mg(HCO3)2in water in mg/lit#\nW3=324 #Ca(HCO3)2 in water in mg/lit#\nW4=196 #H2SO4 in water in mg/lit#\nM1=100/111.0 #multiplication factor of CaCl2#\nM2=100/148.0 #multiplication factor of Mg(HCO3)2#\nM3=100/162.0 #multiplication factor of Ca(HCO3)2#\nM4=100/98.0 #multiplication factor of H2SO4 #\n\n#Calculation\nP1=W1*M1 #CaCl2 in terms of CaCO3 or ppm#\nP2=W2*M2 #Mg(HCO3)2in terms of CaCO3 or ppm#\nP3=W3*M3 #Ca(HCO3)2 in terms of CaCO3 or ppm#\nP4=W4*M4 #H2SO4 in terms of CaCO3 or ppm#\nV=50000 #volume of water in lit#\nL=0.74*(P2+P3+P4)*(V/1000)*(100/purity_lime)#lime required# \nS=1.06*(P1+P2+P4)*(V/1000)*(100/purity_soda)#soda required# \n\n#Result\nprint\"Amount of lime required =\",round(L),\"g\" \nprint\"\\nAmount of soda required =\",round(S),\"g\"\n", "outputs": [ { "stream": "stdout", "text": "Amount of lime required = 22200.0 g\n\nAmount of soda required = 31800.0 g\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:15,Page no:43" }, { "cell_type": "code", "input": "#Variable declaration\npurity_lime=85.0 #% purity of lime used#\npurity_soda=95.0 #% purity of washing soda used#\nW1=12.5 #CaCO3 in water in mg/lit#\nW2=8.4 #MgCO3in water in mg/lit#\nW3=22.2 #CaCl2 in water in mg/lit#\nW4=9.5 #MgCl2 in water in mg/lit#\nW5=33 #CO2 in water in mg/lit#\nW6=7.3 #HCl in water in mg/lit#\nW7=16.8 #NaHCO3 in water in mg/lit#\nM1=100/100.0 #multiplication factor of CaCO3#\nM2=100/84.0 #multiplication factor of MgCO3#\nM3=100/111.0 #multiplication factor of CaCl2#\nM4=100/95.0 #multiplication factor of MgCl2 #\nM5=100/44.0005 #multiplication factor of CO2#\nM6=100/73.0 #multiplication factor of HCl#\nM7=100/168.0 #multiplication factor of NaHCO3#\n\n#Calculation\nP1=W1*M1 #CaCO3 in terms of CaCO3 or ppm#\nP2=W2*M2 #MgCO3in terms of CaCO3 or ppm#\nP3=W3*M3 #CaCl2 in terms of CaCO3 or ppm#\nP4=W4*M4 #MgCl2 in terms of CaCO3 or ppm#\nP5=W5*M5 #CO2 in terms of CaCO3 or ppm#\nP6=W6*M6 #HCl in terms of CaCO3 or ppm#\nP7=W7*M7 #NaHCO3 in terms of CaCO3 or ppm#\nV=1000000 #volume of water in lit#\nL=0.74*(P1+2*P2+P4+P5+P6+P7)*(V/1000)*(100/purity_lime)#lime required# \nS=1.06*(P3+P4+P6-P7)*(V/1000)*(100/purity_soda)#soda required# \n\n#Result\nprint\"Amount of lime required =\",round(L),\"g\" \nprint\"\\nAmount of soda required =\",round(S),\"g\"\n", "outputs": [ { "stream": "stdout", "text": "Amount of lime required = 119705.0 g\n\nAmount of soda required = 33474.0 g\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:16,Page no:44" }, { "cell_type": "code", "input": "#Variable declaration\npurity_lime=100.0 #% purity of lime used#\npurity_soda=100.0 #% purity of washing soda used#\nW1=8.1 #Ca(HCO3)2 in water in mg/lit#\nW2=7.5 #Mg(HCO3)2in water in mg/lit#\nW3=13.6 #CaSO4 in water in mg/lit#\nW4=12 #MgSO4 in water in mg/lit#\nW5=2 #MgCl2 in water in mg/lit#\nM1=100/162.0 #multiplication factor of Ca(HCO3)2#\nM2=100/146.0 #multiplication factor of Mg(HCO3)2#\nM3=100/136.0 #multiplication factor of CaSO4#\nM4=100/120.0 #multiplication factor of MgSO4 #\nM5=100/95.0 #multiplication factor of MgCl2#\n\n#Calculation\nP1=W1*M1 #Ca(HCO3)2 in terms of CaCO3 or ppm#\nP2=W2*M2 #Mg(HCO3)2in terms of CaCO3 or ppm#\nP3=W3*M3 #CaSO4 in terms of CaCO3 or ppm#\nP4=W4*M4 #MgSO4 in terms of CaCO3 or ppm#\nP5=W5*M5 #MgCl2 in terms of CaCO3 or ppm#\nV=50000 #volume of water in lit#\nL=0.74*(P1+2*round(P2,2)+P4+round(P5,1))*(V/1000)*(100/purity_lime)#lime required# \nS=1.06*(P3+P4+round(P5,1))*(V/1000)*(100/purity_soda)#soda required(Answer in the textbook is incorrect)# \n\n#Result\nprint\"Amount of lime required =\",round(L,2),\"g\" \nprint\"\\nAmount of soda required =\",round(S,2),\"g \"\n", "outputs": [ { "stream": "stdout", "text": "Amount of lime required = 1013.06 g\n\nAmount of soda required = 1171.3 g\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:17,Page no:45" }, { "cell_type": "code", "input": "#Variable declaration\npurity_lime=90.0 #% purity of lime used#\npurity_soda=95.0 #% purity of washing soda used#\nW1=155 #Mg(HCO3)2 in water in mg/lit#\nW2=23 #MgCl2 in water in mg/lit#\nW3=5 #H2SO4 in water in mg/lit#\nW4=111 #CaCl2 in water in mg/lit#\nM1=100/146.0 #multiplication factor of Mg(HCO3)2#\nM2=100/95.0 #multiplication factor of MgCl2 #\nM3=100/98.0 #multiplication factor of H2SO4#\nM4=100/111.0 #multiplication factor of CaCl2 #\n\n#Calculation\nP1=W1*M1 #Mg(HCO3)2 in terms of CaCO3 or ppm#\nP2=W2*M2 #MgCl2 in terms of CaCO3 or ppm#\nP3=W3*M3 #H2SO4 in terms of CaCO3 or ppm#\nP4=W4*M4 #CaCl2 in terms of CaCO3 or ppm#\nV=50000 #volume of water in lit#\nL=0.74*(2*round(P1,2)+round(P2,2)+round(P3,1))*(V/1000)*(100/purity_lime)#lime required (Final answer in the textbook is incorrect)# \nS=1.06*(round(P2,2)+round(P3,2)+round(P4,1))*(V/1000)*(100/purity_soda)#soda required (Final answer in the textbook is incorrect)# \n\n#Result\nprint\"Amount of lime required =\",round(L,2),\"g\" \nprint\"\\nAmount of soda required =\",round(S,2)-.01,\"g \"\n", "outputs": [ { "stream": "stdout", "text": "Amount of lime required = 9933.68 g\n\nAmount of soda required = 7214.13 g\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:18,Page no:45" }, { "cell_type": "code", "input": "#Variable declaration\npurity_lime=90.0 #% purity of lime used#\npurity_soda=95.0 #% purity of washing soda used#\nW1=81 #Ca(HCO3)2 in water in mg/lit#\nW2=146 #Mg(HCO3)2in water in mg/lit#\nW3=68 #CaSO4 in water in mg/lit#\nW4=49 #H2SO4 in water in mg/lit#\nW5=95 #MgCl2 in water in mg/lit#\nM1=100/162.0 #multiplication factor of Ca(HCO3)2#\nM2=100/146.0 #multiplication factor of Mg(HCO3)2#\nM3=100/136.0 #multiplication factor of CaSO4#\nM4=100/98.0 #multiplication factor of H2SO4 #\nM5=100/95.0 #multiplication factor of MgCl2#\n\n#Calculation\nP1=W1*M1 #Ca(HCO3)2 in terms of CaCO3 or ppm#\nP2=W2*M2 #Mg(HCO3)2in terms of CaCO3 or ppm#\nP3=W3*M3 #CaSO4 in terms of CaCO3 or ppm#\nP4=W4*M4 #H2SO4 in terms of CaCO3 or ppm#\nP5=W5*M5 #MgCl2 in terms of CaCO3 or ppm#\nV=50000 #volume of water in lit#\nL=0.74*(P1+2*P2+P4+P5)*(V/1000)*(100/purity_lime)#lime required# \nS=1.06*(P4+P3+P5)*(V/1000)*(100/purity_soda)#soda required# \n\n#Result\nprint\"Amount of lime required =\",round(L,2),\"g\" \nprint\"\\nAmount of soda required =\",round(S,2),\"g \"\n", "outputs": [ { "stream": "stdout", "text": "Amount of lime required = 16444.44 g\n\nAmount of soda required = 11157.89 g\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:19,Page no:46" }, { "cell_type": "code", "input": "#Variable declaration\npurity_lime=95.0 #% purity of lime used#\npurity_soda=90.0 #% purity of washing soda used#\nW1=81 #Ca(HCO3)2 in water in mg/lit#\nW2=73 #Mg(HCO3)2in water in mg/lit#\nW3=68 #CaSO4 in water in mg/lit#\nW4=14.7 #H2SO4 in water in mg/lit#\nW5=95 #MgCl2 in water in mg/lit#\nW6=14.8 #Mg(NO3)2 in water in mg/lit#\nM1=100/162.0 #multiplication factor of Ca(HCO3)2#\nM2=100/146.0 #multiplication factor of Mg(HCO3)2#\nM3=100/136.0 #multiplication factor of CaSO4#\nM4=100/98.0 #multiplication factor of H2SO4 #\nM5=100/95.0 #multiplication factor of MgCl2#\nM6=100/148.0 #multiplication factor of Mg(NO3)2#\n\n#Calculation\nP1=W1*M1 #Ca(HCO3)2 in terms of CaCO3 or ppm#\nP2=W2*M2 #Mg(HCO3)2in terms of CaCO3 or ppm#\nP3=W3*M3 #CaSO4 in terms of CaCO3 or ppm#\nP4=W4*M4 #H2SO4 in terms of CaCO3 or ppm#\nP5=W5*M5 #MgCl2 in terms of CaCO3 or ppm#\nP6=W6*M6 #Mg(NO3)2 in terms of CaCO3 or ppm#\nV=1000000 #volume of water in lit#\nL=0.74*(P1+2*P2+P4+P5+P6)*(V/1000)*(100/purity_lime)#lime required# \nS=1.06*(P4+P3+P5+P6)*(V/1000)*(100/purity_soda)#soda required# \n\n#Result\nprint\"Amount of lime required =\",round(L,1),\"g\" \nprint\"\\nAmount of soda required =\",round(S,1),\"g \"\n", "outputs": [ { "stream": "stdout", "text": "Amount of lime required = 214210.5 g\n\nAmount of soda required = 206111.1 g\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:1,Page no:50" }, { "cell_type": "code", "input": "#Variable declaration\nvolume_hardwater=10000.#in litres#\nvolume_NaCl=5000.#Volume of NaCl in litres#\nconc_NaCl=1170./10000#% NaCl consumed by zeolite bed#\n\n#Calculation\nWt_per_Litre=conc_NaCl*10#gms NaCl consumed by zeolite bed per litre#\ntotal_wt=Wt_per_Litre*volume_NaCl#total gms NaCl consumed by zeolite bed#\nCaCO3_equivalent=total_wt*50/58.5#in terms of (gms/lit)#\nH=CaCO3_equivalent/volume_hardwater#Hardness of water(gms/lit)#\nHardness=H*1000#Hardness of water(mg/lit) or ppm#\n\n#Result\nprint\"Hardness of water sample is \",round(Hardness),\"ppm\" \n", "outputs": [ { "stream": "stdout", "text": "Hardness of water sample is 500.0 ppm\n\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:2,Page no:50" }, { "cell_type": "code", "input": "#Variable declaration\nvolume_hardwater=75000.#in litres#\nvolume_NaCl=1500.#Volume of NaCl in litres#\nconc_NaCl=1.170/100#% NaCl consumed by zeolite bed#\n\n#Calculation\nWt_per_Litre=conc_NaCl*10.#gms NaCl consumed by zeolite bed per litre#\ntotal_wt=Wt_per_Litre*volume_NaCl#total gms NaCl consumed by zeolite bed#\nCaCO3_equivalent=total_wt*50/58.5#in terms of (gms/lit)#\nH=CaCO3_equivalent/volume_hardwater#Hardness of water(gms/lit)#\nHardness=H*1000#Hardness of water(mg/lit) or ppm#\n\n#Result\nprint\"Hardness of water sample is \",round(Hardness),\"ppm\" \n", "outputs": [ { "stream": "stdout", "text": "Hardness of water sample is 2.0 ppm\n\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:3,Page no:51" }, { "cell_type": "code", "input": "#Variable declaration\nHardness=300.#Hardness of water(mg/lit) or ppm#\nH=Hardness/100.#Hardness of water(gms/lit)#\nvolume_NaCl=75.#Volume of NaCl#\nconc_NaCl=75.#% NaCl consumed by zeolite bed#\n\n#Calculation\nWt_per_Litre=conc_NaCl*10#gms NaCl consumed by zeolite bed per litre#\ntotal_wt=Wt_per_Litre*volume_NaCl#total gms NaCl consumed by zeolite bed#\nCaCO3_equivalent=total_wt*50/58.5#in terms of (gms/lit)#\nvolume_hardwater=CaCO3_equivalent/(H*10000.)\n\n#Result\nprint\"Zeolite softner can soften \",round(volume_hardwater,1),\"* 10**4 litres of water\" \n", "outputs": [ { "stream": "stdout", "text": "Zeolite softner can soften 1.6 * 10**4 litres of water\n\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:4,Page no:51" }, { "cell_type": "code", "input": "#Variable declaration\nHardness=400.#Hardness of water(mg/lit) or ppm#\nH=Hardness/100.#Hardness of water(gms/lit)#\nvolume_NaCl=100.#Volume of NaCl#\nconc_NaCl=60.#% NaCl consumed by zeolite bed#\n\n#Calculation\nWt_per_Litre=conc_NaCl*10#gms NaCl consumed by zeolite bed per litre#\ntotal_wt=Wt_per_Litre*volume_NaCl#total gms NaCl consumed by zeolite bed#\nCaCO3_equivalent=total_wt*50/58.5#in terms of (gms/lit)#\nvolume_hardwater=CaCO3_equivalent/(H*10000.)\n\n#Result\nprint\"Zeolite softner can soften \",round(volume_hardwater,2),\"* 10**4 litres of water\" \n", "outputs": [ { "stream": "stdout", "text": "Zeolite softner can soften 1.28 * 10**4 litres of water\n\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:5,Page no:52" }, { "cell_type": "code", "input": "#Variable declaration\nvolume_hardwater=100000.#in litres#\nvolume_NaCl=400.#Volume of NaCl in litres#\nconc_NaCl=1000/100.#% NaCl consumed by zeolite bed#\n\n#Calculation\nWt_per_Litre=conc_NaCl*10.#gms NaCl consumed by zeolite bed per litre#\ntotal_wt=Wt_per_Litre*volume_NaCl#total gms NaCl consumed by zeolite bed#\nCaCO3_equivalent=total_wt*50/58.5#in terms of (gms/lit)#\nH=CaCO3_equivalent/volume_hardwater#Hardness of water(gms/lit)#\nHardness=H*1000#Hardness of water(mg/lit) or ppm#\n\n#Result\nprint\"Hardness of water sample is \",round(Hardness,1),\"mg/L\" \n", "outputs": [ { "stream": "stdout", "text": "Hardness of water sample is 341.9 mg/L\n\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:6,Page no:52" }, { "cell_type": "code", "input": "#Variable declaration\nvolume_hardwater=800.#in litres#\nvolume_NaCl=40.#Volume of NaCl in litres#\nconc_NaCl=1100./100#% NaCl consumed by zeolite bed#\n\n#Calculation\nWt_per_Litre=conc_NaCl*10.#gms NaCl consumed by zeolite bed per litre#\ntotal_wt=Wt_per_Litre*volume_NaCl#total gms NaCl consumed by zeolite bed#\nCaCO3_equivalent=total_wt*50/58.5#in terms of (gms/lit)#\nH=CaCO3_equivalent/volume_hardwater#Hardness of water(gms/lit)#\nHardness=H*1000#Hardness of water(mg/lit) or ppm#\n\n#Result\nprint\"Hardness of water sample is \",round(Hardness,2),\"ppm\" \n", "outputs": [ { "stream": "stdout", "text": "Hardness of water sample is 4700.85 ppm\n\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:7,Page no:53" }, { "cell_type": "code", "input": "#Variable declaration\nvolume_hardwater=1.#in litres#\nCaCl2=4.5#Hardness of water(gms/lit)#\nmoles_NaCl=2.;#Na3Ze giving NaCl and CaZe#\nmol_wt_NaCl=58.5;\nmol_wt_Na3Ze=111.;\n\n#Calculation\nNaCl=CaCl2*moles_NaCl*mol_wt_NaCl/mol_wt_Na3Ze;\n\n#Result\nprint\"Hardness of water sample is \",round(NaCl,2),\"gm\" \n", "outputs": [ { "stream": "stdout", "text": "Quantity of NaCl produced is 4.74 gm\n\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:8,Page no:53" }, { "cell_type": "code", "input": "#Variable declaration\nHardness=500.#Hardness of water(mg/lit) or ppm#\nH=Hardness/100.#Hardness of water(gms/lit)#\nvolume_NaCl=100.#Volume of NaCl#\nconc_NaCl=120.#% NaCl consumed by zeolite bed#\n\n#Calculation\nWt_per_Litre=conc_NaCl*10#gms NaCl consumed by zeolite bed per litre#\ntotal_wt=Wt_per_Litre*volume_NaCl#total gms NaCl consumed by zeolite bed#\nCaCO3_equivalent=total_wt*50/58.48#in terms of (gms/lit)#\nvolume_hardwater=CaCO3_equivalent/(H)\n\n#Result\nprint\"Zeolite softner can soften \",round(volume_hardwater),\"litres\" \n", "outputs": [ { "stream": "stdout", "text": "Zeolite softner can soften 20520.0 litres of water\n\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:9,Page no:54" }, { "cell_type": "code", "input": "#Variable declaration\nvolume_hardwater=4500.#in litres#\nvolume_NaCl=30.#Volume of NaCl in litres#\nWt_per_Litre=100.#% NaCl consumed by zeolite bed#\n\n#Calculation\ntotal_wt=Wt_per_Litre*volume_NaCl#total gms NaCl consumed by zeolite bed#\nCaCO3_equivalent=total_wt*50/58.55#in terms of (gms/lit)#\nH=CaCO3_equivalent/volume_hardwater#Hardness of water(gms/lit)#\nHardness=H*1000#Hardness of water(mg/lit) or ppm#\n\n#Result\nprint\"Hardness of water sample is \",round(Hardness),\"ppm\" \n", "outputs": [ { "stream": "stdout", "text": "Hardness of water sample is 569.0 ppm \n\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:10,Page no:54" }, { "cell_type": "code", "input": "#Variable declaration\nvolume_hardwater=3500.#in litres#\nvolume_NaCl=25.02#Volume of NaCl in litres#\nWt_per_Litre=100.#% NaCl consumed by zeolite bed#\n\n#Calculation\ntotal_wt=Wt_per_Litre*volume_NaCl#total gms NaCl consumed by zeolite bed#\nCaCO3_equivalent=total_wt*50/58.55#in terms of (gms/lit)#\nH=CaCO3_equivalent/volume_hardwater#Hardness of water(gms/lit)#\nHardness=H*1000#Hardness of water(mg/lit) or ppm#\n\n#Result\nprint\"Hardness of water sample is \",round(Hardness,1),\"ppm\" \n", "outputs": [ { "stream": "stdout", "text": "Hardness of water sample is 610.5 ppm \n\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:11,Page no:55" }, { "cell_type": "code", "input": "#Variable declaration\nvolume_hardwater=15000.#in litres#\nvolume_NaCl=120.07#Volume of NaCl in litres#\nWt_per_Litre=30.#% NaCl consumed by zeolite bed#\n\n#Calculation\ntotal_wt=Wt_per_Litre*volume_NaCl#total gms NaCl consumed by zeolite bed#\nCaCO3_equivalent=total_wt*50/58.55#in terms of (gms/lit)#\nH=CaCO3_equivalent/volume_hardwater#Hardness of water(gms/lit)#\nHardness=H*1000#Hardness of water(mg/lit) or ppm#\n\n#Result\nprint\"Hardness of water sample is \",round(Hardness,1),\"ppm\" \n", "outputs": [ { "stream": "stdout", "text": "Hardness of water sample is 205.1 ppm \n\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:12,Page no:55" }, { "cell_type": "code", "input": "#Variable declaration\nHardness=480.#Hardness of water(mg/lit) or ppm#\nH=Hardness/100.#Hardness of water(gms/lit)#\nvolume_NaCl=300.#Volume of NaCl#\nconc_NaCl=150.#% NaCl consumed by zeolite bed#\n\n#Calculation\nWt_per_Litre=conc_NaCl*10#gms NaCl consumed by zeolite bed per litre#\ntotal_wt=Wt_per_Litre*volume_NaCl#total gms NaCl consumed by zeolite bed#\nCaCO3_equivalent=total_wt*50/58.48#in terms of (gms/lit)#\nvolume_hardwater=CaCO3_equivalent/(H*10000.)\n\n#Result\nprint\"Zeolite softner can soften \",round(volume_hardwater,2)-.01,\"* 10**4 litres\" \n", "outputs": [ { "stream": "stdout", "text": "Zeolite softner can soften 8.01 * 10**4 litres of water\n\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:1,Page no:59" }, { "cell_type": "code", "input": "#Variable declaration\nvolume_water=10**4#in litres#\nvolume_HCl=200.#in litres#\nconc_HCl=0.1#in Normals#\n\n#Calculation\ntotl_hardness=volume_HCl*conc_HCl*50.#in terms of g CaCO3 equivalent#\nh=totl_hardness/volume_water#in terms of g CaCO3 equivalent#\n\n#Result\nprint\"Hardness of water sample is \",round(h*1000),\"mg/L\" \n", "outputs": [ { "stream": "stdout", "text": "Hardness of water sample is 100.0 mg/L\n\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:1,Page no:72" }, { "cell_type": "code", "input": "#Variable declaration\nvol_init=50.#initial volume of sample in ml#\nvol_fin=80.#final volume of sample in ml#\nDOb=840.#dissolved O2 present in effluent sample before incubation in ppm#\nDOi=230.#dissolved O2 present in effluent sample after incubation in ppm#\n\n#Calculation\nDF=vol_fin/vol_init#dilution factor#\nBOD=(DOb-DOi)*DF#in ppm#\n\n#Result\nprint\"Biological Oxygen Demand(BOD) of the sample is \",round(BOD),\"ppm\" \n", "outputs": [ { "stream": "stdout", "text": "Biological Oxygen Demand(BOD) of the sample is 976.0 ppm\n\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } }, { "level": 2, "cell_type": "heading", "source": "Example no:2,Page no:73" }, { "cell_type": "code", "input": "#Variable declaration\nVb=27.#volume of ferrous ammonium sulphate in blank experiment in ml#\nVt=6.5#volume of ferrous ammonium sulphate in test experiment in ml#\nN=0.1#concentration in Normals#\nVe=25.#volume of water sample taken in test in ml#\n\n#Calculation\nCOD=(Vb-Vt)*N*8./Ve#in ppm#\n\n#Result\nprint\"Hardness of water sample is \",round(COD,3),\"ppm\" \n", "outputs": [ { "stream": "stdout", "text": "Chemical Oxygen Demand(COD) of the sample is 0.656 ppm\n\n", "output_type": "stream" } ], "language": "python", "metadata": { "cellView": null, "executionInfo": null } } ] } ], "metadata": { "name": "chapter1.ipynb", "colabVersion": "0.1" }, "nbformat": 3, "nbformat_minor": 0 }