Question 3
Statement
The following pseudocode is executed using the “Scores” dataset. At the end of the execution, variable Count captures the number of students whose total marks are more than the class average (of total marks) but have scored below the subject average in at least one subject. Assume that the variable AvgT holds the value of the average total marks. Similarly, the variables AvgP, AvgC and AvgM hold the value of the average marks of Physics, Chemistry and Mathematics respectively. Choose the correct code fragment to complete the pseudocode.
Count = 0while(Table 1 has more rows){ Read the first row X from Table 1 A = False, B = False, C = False, D = False if(X.Total > AvgT){ A = True } if(X.Mathematics < AvgM){ B = True } if(X.Physics < AvgP){ C = True } if(X.Chemistry < AvgC){ D = True } ******************** * Fill the code * ******************** Move X to Table 2}