Google Classroom
GeoGebraGeoGebra Classroom

simple score

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)
The counting is done in the script of the Input Box
  • 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
The button 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]