arithmetic
PURPOSE
Tests arithmetic skills.
SYNOPSIS
/usr/games/arithmetic [ +-x/ ] [ range ]
DESCRIPTION
The arithmetic command displays simple arithmetic prob-
lems and waits for you to enter an answer. If your
answer is correct, the program displays "Right!" and pre-
sents a new problem. If your answer is wrong, it dis-
plays "What?" and waits for another answer. Every 20
problems, arithmetic displays the number of correct and
incorrect responses and the time required to answer.
The arithmetic command does not give the correct answers
to the problems it displays. It provides practice rather
than instruction in performing arithmetic calculations.
The range is a decimal number specifying the permissible
range of all numbers (except answers). The default range
is 10. At the start, all numbers within this range are
equally likely to appear. If you make a mistake, the
numbers in the problem you missed become more likely to
reappear.
To quit the game, press INTERRUPT (Alt-Pause); arithmetic
displays the final game statistics and exits.
FLAGS
Two types of optional flags modify the action of arith-
metic. The first set specifies the type of arithmetic
problem:
+ Specifies addition problems.
- Specifies subtraction problems.
x Specifies multiplication problems.
/ Specifies division problems.
If you do not select any flags, arithmetic selects addi-
tion and subtraction problems. If you give more than one
problem specifier (+-x/), the program mixes the specified
types of problems in random order.
EXAMPLES
1. To drill on addition and subtraction of integers from
0 to 10:
/usr/games/arithmetic
2. To drill on addition, multiplication, and division of
integers from 0 to 50:
/usr/games/arithmetic +x/ 50