How to play old alpha/beta versions in Minecraft?

By default, Minecraft is set to the most current version of the game. However, there are times when you may want to change to another version, such as an old alpha or beta version. These steps will explain exactly what you need to do to play such a version.