[LON-CAPA-dev] Units for Avogadro's number

Guy Albertelli II lon-capa-dev@mail.lon-capa.org
Fri, 9 Jan 2004 15:17:39 -0500 (EST)


Hi Robley,

> As I'm trying to set up a problem involving Avagodro's number calculation,
> the units for N might be molecules/mol, particles/mole, or something/mol.
> 
> To have an answer where one is calculating the number of molecules, say, the
> "unit" of the answer would be molecules.  Yet LON-CAPA doesn't accept that
> as a unit.  Is there a way to append a string to a numerical answer?

There isn't a way for an instructor to create a new unit yet.

You can do

<problem>
 <startouttext /> The correct answer is 3 molecules<endouttext />
 <numericalresponse answer="3">
   <textline />
 </numericalresponse>
 <stringresponse answer="molecules">
   <textline />
 </stringresponse>
</problem>

Which isn't exactly like having a unit but does require them to say
molecules.



-- 
guy@albertelli.com  LON-CAPA Developer  0-7-5-0-