The answers given above by ObsessiveMathsFreak, namely that the average is \frac{\pi}{2} is wrong.
The integral over a period will *not* give the average, merely the area under the curve, which should be obvious to everyone who provided the answers - as proof consider that the average of...