I’ve been coughing all day and my chest really hurts:/

Patient: I’ve been coughing all day and my chest really hurts:/ Is there anything I should take to feel better? Also on another topic unrelated to this, I have had a pain in my upper abdomen for a long time and it started two years ago, it comes and goes and I usually get the pain when I’m under a lot of stress or when i drink soda/eat something spicy, do you have any idea what I have and what i should take to feel better?

Doctor: