What determines whether or not the majority of acid is in the protonated form in solution? How does this incorporate both the pH of the solution and the pka of the acid?

The Ka of the acid does all of this.