Have you looked at the printed output to see why the missing line is not being printed?
There is data for 4 quarters, why doesn't the data for one of the quarters get printed?
Look at the if statement that controls the printing. What values are required for the if statement to be true? How do the variables in the if statemennt get the correct values for the if to be true?