Calculating Average Voltage
The integral for finding the average voltage isn't interested in the period of the sine wave.  It's only interested in the period over which you are measuring.  Since you are integrating over a half cycle, then use the period that identifies a half cycle in the integral.