Hello I am Dr Ravinder Sharma ENT surgeon
On the basis of information provided it appears that you have a chest infection
. It could be a pneumonic patch (infection of lung substance) or bronchitis
(inflammation of the bronchi). The complaint of cough leading to vomiting
is also suggestive of a possible gastrointestinal cause for your problem.
I would advise you for a Physician consultation, X ray chest and a blood test
to come down to the diagnosis.
Stay away from alcohol (if you take alcohol)and smoking
(if you smoke).
Avoid hot and spicy food
I hope this answers your concerns. Feel free to contact me if your need more information on this
With warm regards