|
|
Hi all,
I would like to create an interactive test where my user will be asked to fill
in the missing word from a sentance. Something like The name of the ancient
cite of Sparta was _________. For each correct answer I want to give 5 points
and for wrog 0 points. In addition, I have sentances with two missing words
(e.g., The icon in the church is a ____ because the original one was ___) in
which I would like to give two and half points for each correct answer. Finally
the code should calcluate the total score and write it in a file. The steps to
solve this I guess should be something like:
1) Load each question in a field on the stage (done that)
2) Allow the user to type the answer in a field on the stage, using commas for
double words (done that)
3) Have a next button that loads the next question on the stage and:
a) Write the question and answer in the text file using Buddy API (done that)
b) Give a grade for each question ( 5 for single correct answers, 2,5 when
double words are needed, and 0 for wrong)
c) Calculate a total score and write it in the same file!
As you understand from the above my problems are with steps b) and c). Any
ideas will be much appreciated!
Many thanks
|
|