When the lung or the lobe of the lung partially or completely collapses, a patient is said to be suffering…