How do I know if my dog has kennel cough?

Symptoms are coughing -sometimes persistent and annoying.  It usually sounds much worse than it is.  Coughing sometimes leads to throwing up clear or yellow bile.