<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><!-- saved from url=(0058)http://proton.csudh.edu/lecture_help/volmassmolesnet4.html --><title>Solutions:Mass, Volume and Molarity</title> <meta http-equiv="Content-Type" content="text/html; charset=unicode"> <script language="javascript"> //updated 9/10/98 //globals attempts=0 theanswer="" function clear(){ document.forms[0].answer.value="" document.forms[1].results.value="" attempts=0 } function cleanse(){ clear() document.forms[1].total.value=0 document.forms[1].correct.value=0 } function MakeArray(n){ this.length=n for (var i=1;i<=n;i++){ this[i]= 0} } function question(p1,p2,p3,p4){ this.p1=p1 this.p2=p2 this.p3=p3 this.p4=p4 } function item(name,form,gfw){ this.name=name this.form=form this.gfw=gfw } compound=new MakeArray(20) compound[1]=new item("sodium chloride","NaCl",58.5) compound[2]=new item("sodium nitrate","NaNO<sub>3</sub>",85) compound[3]=new item("ammonium chloride","NH<sub>4</sub>Cl",53.5) compound[4]=new item("calcium nitrate","Ca(NO<sub>3</sub>)<sub>2</sub>",164) compound[5]=new item("methanol","CH<sub>4</sub>O",32) compound[6]=new item("ethanol","C<SUB>2</SUB>H<sub>6</sub>O",46) compound[7]=new item("acetone","C<SUB>3</SUB>H<sub>6</sub>O",58) compound[8]=new item("barium nitrate","Ba(NO<sub>3</sub>)<sub>2</sub>",261.4) compound[9]=new item("sodium iodide ","NaI",150) compound[10]=new item("sodium bromide","NaBr",103) compound[11]=new item("ferric chloride","FeCl<SUB>3</SUB>",162) compound[12]=new item("cobalt(II) chloride","CoCl<SUB>2</SUB>",130) compound[13]=new item("sucrose","",342.3) compound[14]=new item("lithium iodide","LiI",137) compound[15]=new item("potassium fluoride","KF",58.1) compound[16]=new item("potassium chloride","KCl",74.5) compound[17]=new item("calcium chloride","CaCl<SUB>2</SUB>",111) compound[18]=new item("barium iodide","BaI<SUB>2</SUB>",391) compound[19]=new item("ammonium nitrate","NH<sub>4</sub>NO<sub>3</sub>",80) compound[20]=new item("ammonium bromide","NH<sub>4</sub>Br",98) quest=new MakeArray(10) quest[1]=new question("What volume in "," of "," would be required if you wanted "," of solute?") quest[2]=new question("How many grams of "," are in "," of a <b>","</b> solution?") quest[3]=new question("What is the molarity of a solution which contains "," of "," in a total volume of ","?") function begin(){ clear() molarity=0 lvol=Math.round(100*(.5+3*Math.random()))/100 mlvol=Math.round(1e3*lvol) var cmpd=Math.round(.5+19.95*Math.random()) while (molarity<.05){ molarity=Math.round(100*Math.random())/100} moles=molarity*lvol gmass=moles*compound[cmpd]["gfw"] gmass=Math.round(100*gmass)/100 mgmass=Math.round(1000*gmass) var which=Math.round(.5+2.95*Math.random()) var whichmass=Math.random() var whichvol=Math.random() var whichitem=Math.random() if (whichmass>.5){ mass=gmass massdim="gram"} else{mass=mgmass massdim="mg"} if (whichvol>.5){ vol=lvol voldim="liters"} else{vol=mlvol voldim="mL"} if (whichitem>.5){ cpd=compound[cmpd]["name"]} else {cpd=compound[cmpd]["form"]} if (which==1){ var1=voldim var2=molarity +"<b>M</b> " +cpd var3=mass+massdim theanswer=vol} if (which==2){ var1=cpd var2=vol+voldim var3=molarity+"<b>M</b>" theanswer=gmass} if (which==3){ var1=mass+massdim var2=cpd var3=vol+voldim theanswer=molarity} var qustion=quest[which]["p1"]+var1+quest[which]["p2"]+var2+quest[which]["p3"]+var3+quest[which]["p4"] tryit(qustion) } function tryit(qustion) { parent.frames[0].document.clear(); parent.frames[0].document.open(); parent.frames[0].document.writeln ("<html>"); parent.frames[0].document.writeln ("<head>"); parent.frames[0].document.writeln ("</head>"); parent.frames[0].document.writeln ("<body bgcolor = FFFFFF"); parent.frames[0].document.writeln ("<pre>"); parent.frames[0].document.write (qustion); //parent.frames[0].document.write ("if<b> ",mass1,"</b>"); parent.frames[0].document.writeln ("</font>"); parent.frames[0].document.close(); document.forms[0].answer.focus() document.forms[0].answer.select() } function anwer(){ attempts++ document.forms[1].total.value++ if (document.forms[0].answer.value<1.05*theanswer & document.forms[0].answer.value>.95*theanswer){ document.forms[1].results.value="correct" document.forms[1].correct.value++} else{document.forms[1].results.value="incorrect"} } function showans(){ if(attempts>=3){ document.forms[0].answer.value=theanswer } } </script> <meta content="MSHTML 6.00.2800.1170" name="GENERATOR"></head> <body onload="cleanse()"> <h3>Molarity, mass and volume</h3>This page is an exercise in relating molarity, mass and volume. When you press "New Problem," a a question dealing with a solution will appear in the top frame on this page. Determine the value of the correct answer, enter it in the cell and press "Check Answer". You will need a periodic table and possibly your textbook to answer some of the questions. The results appear in the table. <ul> <li>If you miss a problem three times, pressing "Show Answer" will cause the correct answer to appear. </li></ul> <form> <table> <tbody> <tr> <td><input onclick="begin()" type="button" value="New Problem"></td> <td><input onclick="anwer()" type="button" value="Check Answer"></td> <td><input onclick="showans()" type="button" value="Show Answer"></td></tr> <tr> <td><b>Enter your answer here</b></td> <td><input size="10" name="answer"></td></tr></tbody></table></form> <form> <table border="4"> <tbody> <tr> <td><b>Results</b></td> <td><b>Total Done</b></td> <td><b>Total Correct</b></td></tr> <tr> <td align="center"><input size="12" name="results"></td> <td align="center"><input size="3" name="total"></td> <td align="center"><input size="3" name="correct"></td> </tr><tr></tr></tbody></table></form> <hr width="100%" size="2"><font size="-1">This page was developed by <a href="mailto:gwiger@chemistry.csudh.edu">Prof George Wiger</a> of <a href="http://chemistry.csudh.edu/webapps.html">California State University, Dominguez Hills</a> campus.</font><br></body></html>