Addition of feedback

Schech, Barry (NIDA/IRP) BSchech at intra.nida.nih.gov
Tue Jan 15 16:58:08 UTC 2002


I don't know if anyone responded yet to this question but here is how I have
counted and total amounts in one on my projects.

1) Early in the project define the variables such as
         DIM total as integer
         DIM current as integer

    And in the begining put a script such as;
        c.setattrib "Total", total
        c.setattrib "current", current
        current=0

        This will start the project at 0 points or dollars etc. and let you
recall the total and current points/money in a feedback screen.

2) In the list for the project have the following defined (and put in the
answers for each column expected)
        correctanswer
        incorrectanswer
        correctmoney
        incorrectmoney
 ( I used money amounts but you could just use correctanswer and
incorrectanswer)


3) In an inline put something like the following script

 if slide1.RESP =c.GetAttrib ("correctanswer") then    ####slide1 is where
the person was asked to press the appropriate key such as 1 or 2
 total=total + (c.GetAttrib ("correctmoney"))
end if

if slide1.RESP =c.GetAttrib ("incorrectanswer") then
 total=total - (c.GetAttrib ("incorrectmoney"))
end if

if slide1.RESP =c.GetAttrib ("correctanswer") then
 current = (c.GetAttrib ("correctmoney"))
end if

if slide1.RESP =c.GetAttrib ("incorrectanswer") then
 current = (c.GetAttrib ("incorrectmoney"))
end if

c.setattrib "Total", total                 ####This is the raw total
including negative signs
c.setattrib "Total2", abs(total)       ####This strips the negative sign
from the total amount
c.setattrib "current" , current

c.setattrib "sign" , left$ (total,1)    ####This reads the first char. from
the total
if left$ (total,1) <> "-"  then          ###This checks the sign if it is
negative
c.setattrib "sign" , CHR$(32)       ###This assigns the sign to a - so when
I display the dollar amount the neg sign is in front of the $ sign
end if

4) In the feedback screen you can display the total and current amounts by
the following;
        You have just won $[current]
        You total winnings are $[sign] [total2] or
        Your total winnings are [total]       #### If you don't care about
the negative sign before the number


Hope this helps,

Barry Schech
National Institute on Drug Abuse
Baltimore Md.



-----Original Message-----
From: Ho Kok Inn [mailto:art80408 at nus.edu.sg]
Sent: Tuesday, January 15, 2002 2:46 AM
To: 'eprime at mail.talkbank.org'
Subject: Addition of feedback



Hello anyone out there,

Can anyone please enlighten me on how to display different feedbacks in an
experiment?
(say, getting a correct answer for type "A" questions earn you 1 point &
getting a correct answer for type "B" questions earn you 3 points.)

Also, if the above is done, how to add up all these scores that are
displayed in the feedback?

PLEASE HELP- thesis deadline drawing near..............
: )


HKI

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20020115/5c856ec2/attachment.htm>


More information about the Eprime mailing list