Whooping cough is an infection of the lungs and breathing tubes, both of which are parts of the respiratory system.