%% This file is generated by preprocessor!
%% Do not edit it by hand.
%% Edit the source file cpp/one.cpp.



\language{en}
\author{XIAO Gang}
\email{xiao@unice.fr}
\format{html}
\text{data=wims(record 0 of table)}
\integer{end=rows(\data)}
\integer{confparm1=\confparm1 notitemof 1,2,3,4?0}
\integer{confparm2=\confparm2 notitemof 1,2,3,4?0}
\text{empty=}
\integer{confparm3=\confparm3 issametext \empty or \confparm3<7 or
 \confparm3>\end?54}
\text{list=wims(values x for x=1 to \end)}
\text{confparm4=wims(listintersect \confparm4 and \list)}
\integer{given=\confparm1>0?\confparm1:randint(1..4)}
\integer{cp=\confparm2=\confparm1?0:\confparm2}
\text{remain=wims(listcomplement \given in 1,2,3,4)}
\text{remain=\candouble issametext yes and \given != 1?\given,\remain}
\integer{ask=\cp>0 and \cp isitemof \remain?\cp:randitem(\remain)}
 \title{Un elemento}
 \integer{start=1}
 \text{cnt=0,0}
 \text{connector=}
\text{Data=wims(record 0 of table)}
\text{data=\Data}
\text{empty=}
\if{\confparm4 notsametext \empty and \selective notsametext no}{
 \text{data=row(\confparm4,\data)}
}
\text{totname=column(3,\data)}
\text{totsymbole=column(2,\data)}
\integer{datacnt=min(\confparm3,rows(\data))}
\text{f1=\given}
\text{f2=\ask}
\text{namelist=número, símbolo, nombre, masa}
\text{pick=randint(\start..\datacnt)}
\text{data1=row(\cnt[1]+\pick,\data)}
\text{data2=row(\cnt[2]+\pick,\data)}
\text{left=column(\f1,\data1)}
\text{right=column(\f2,\data2)}
\steps{reply \f2}
\statement{¿Cuál es el \namelist[\f2] del elemento \connector cuyo
\namelist[\f1] es \left?
}
\answer{El número atómico es}{\right}{type=number}
\answer{El símbolo es}{\right}{type=case}
\answer{El nombre del elemento es}{\right;\totname}{type=nocase}
\answer{La masa atómica}{\right}{type=number}
