Pneumonia, an infection that inflames the air sacs in one or both lungs, is often caused by bacteria, viruses, or…