# simple score

- Author:
- chris cambré

## counting the number of correct answers and trials

Next applet shows a simple score that counts two variable numbers;

- How many times an answer is given? (= number
**trials**) - How many times a correct answer is given? (= number
**solutions**)

**trials**: Each time an answer is given, the value is increased by 1.**solutions**: If ans equals sol the value is increased by 1, if not it remains the same.__note__: Use double Equal Signs since it's a test and not an attribution

**Start again**resets all counting and makes the Input Box empty again with the commands:

**SetValue[ans,0] SetValue[empty,""] SetValue[trials,0] SetValue[solutions,0]**