faustgertz / edcodeorg

Automatically exported from code.google.com/p/edcodeorg
0 stars 0 forks source link

Mixing numbers and percentages in %or doesn't work #81

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Having something like "0.20 %or 20%" in the answer key doesn't correctly grade 
20% as correct as it's only saving the 0.20 as a number but ignoring the 20%.

Original issue reported on code.google.com by andrewr1...@gmail.com on 22 Feb 2014 at 8:02

GoogleCodeExporter commented 8 years ago

Original comment by d...@edcode.org on 25 Feb 2014 at 6:32

GoogleCodeExporter commented 8 years ago
This is because % is like a wildcard when querying a database (like your 
answers), so putting in 20% in the answer kay is like putting in 20 (in fact 
you could put in 201 20j or 20! and those would be correct because of the "%".  
I would re-word questions so that the student has to type in 20 and does not 
type in .20 or 20%...(....the blah blah would be (_____ percent after blah 
bah?) OR ( ______ %) OR (*Please enter answer as whole number)
Thanks 
Brittany Ansteatt
brtny.lmbrt@gmail.com

Original comment by brtnyAnstet on 10 Apr 2014 at 9:59