PreCheck is $85, Global Entry is $100. Once in the program you will get it almost 100% of the time on your boarding pass if the airline you are flying participates in the program.
Whether you go through a PreCheck line is another matter. Further, even with PreCheck and going through the WTMD you can still get random gropes.