Math-Trainer

Copyright (C) 2002, Nick Andrew

This program is distributed under the terms of the GNU General Public License (see http://www.gnu.org/licenses/gpl.html)

I wrote this simple CGI script to help my youngster with beginning maths. The script generates a random math question (addition only supported at present) which it presents as a form to the client. When the client types an answer and submits, the script reports right or wrong to the client and presents another question. The script counts the number of questions asked and the number of correct answers.

Features

Installation

  1. Simply make a new directory on your webserver and copy index.cgi into it. Make sure you enable "Options +ExecCGI" on the directory.
  2. Create a subdirectory called Right and put some icons into it. On a correct answer, the script will choose one of the files at random and display it as an image. Only filenamed ending in .jpg are chosen.

Feedback and improvements

If you make any improvements to this script, please send them to me at <nick@nick-andrew.net>.

While writing this script, I was thinking of some improvements for the future:

Download

math-trainer-0.1.tar.gz (2k)
The script plus this README file.

Changelog

math-trainer-0.1
Initial release.