There are no translations available

 
Home arrow Forums
wimsedu le forum
Welcome, Guest
Please Login or Register.    Lost Password?
conditions avec type units (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: conditions avec type units
#1806
Damir (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
conditions avec type units 13 Years, 10 Months ago Karma: 0  
Bonjour,

Je cherche à analyser des réponses de type "units", par exemple 3 W ou 5 m, et à mettre des conditions dessus. Typiquement, j'aimerais considérer une réponse du genre "entre 3 et 5 m" comme correcte. Le problème est que les conditions ne semblent pas fonctionner avec ce type de réponse.
Faut-il que je spécifie l'unité ? ce serait dommage.

Damir
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1807
Julien (User)
Expert Boarder
Posts: 102
graphgraph
User Offline Click here to see the profile of this user
Re:conditions avec type units 13 Years, 10 Months ago Karma: 3  
Hello,

Tu peux enchaîner 2 types : un typé range pour définir un intervalle et l'autre typé case pour l'unité.

Voili voilou.
 
Report to moderator   Logged Logged  
 
Last Edit: 2010/07/15 17:12 By Julien.
  The administrator has disabled public write access.
#1808
Damir (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Re:conditions avec type units 13 Years, 10 Months ago Karma: 0  
Salut,

Oui, c'est vrai, mais je voudrais aussi utiliser les capacités du type unit. En l'occurrence 1.5 m + 10 cm = 1.6 m.

Si l'étudiant répond 2 m ou 200 cm, le résultat est correct dans les deux cas.

Mais merci, je n'avais pas pensé aux deux types à la suite.

Ciao

Damir
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1809
Julien (User)
Expert Boarder
Posts: 102
graphgraph
User Offline Click here to see the profile of this user
Re:conditions avec type units 13 Years, 10 Months ago Karma: 3  
Ok je comprends.

J'ai une idée mais je ne l'ai pas testée.

Tu parts sur 2 types donc un numeric et un case en mettant des variables non définie au préalable puis tu les analyses avec conditions.

Ex:

\answer{}{\ninportnavac1}{type=numeric}
\answer{}{\ninportnavac2}{type=case}
\condition{}{\ninportnavac1>=100 and \ninportnavac1<=200 and \ninportnavac2 issametext cm}
\condition{}{\ninportnavac1>=1 and \ninportnavac1<=2 and \ninportnavac2 issametext m}
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1812
Damir (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Re:conditions avec type units 13 Years, 10 Months ago Karma: 0  
Salut,

Oui, ça peut peut-être fonctionner. Mais il faudrait que je teste tous les cas et combinaisons de cas. C'est bien pourquoi on utilise des "units" pour gérer tout ça.

Merci pour la suggestion

Damir
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
© 2024 WimsEdu
Joomla! est un logiciel libre distribué sous licence GNU/GPL.