A bacterial, viral, or fungal infection results in fluid and inflammation in the lungs, which is known as pneumonia. It causes dyspnea, fever, and a cough that produces green, yellow, or red mucus. Pneumonia is often caused by pneumococcal illness, …