Question 9
The following pseudocode is executed using the "Scores" dataset. At the end of execution, B captures the minimum Mathematics marks of a student whose
(i) Total marks is more than the average total marks
(ii) Mathematics marks is more than Physics and Chemistry marks
Assume that the variable Avg holds the value of the average total marks. Choose the correct code fragment to complete the pseudocode.
while (Table 1 has more rows) { Read the first row X in Table 1 ******************** * Fill the code * ********************
}B = 101while (Table 3 has more rows) { Read the first row X in Table 3 if (X.Total > Avg and X.Mathematics < B) { B = X.Mathematics } Move X to Table 2}