Q18.The following pseudocode is executed using the "Library" dataset. At the end of the execution, `A` captures the number of fiction books which were published between 2000 and 2010 (including 2000 and 2010) and are written in a language other than English. Choose the correct code for procedure `doSomething` to complete the pseudocode.
```
A = 0
while(Table 1 has more rows){
Read the first row X in Table 1
A = A + doSomething(X)
Move X to Table 2
}
```
Save
Check
Details
Q18
27 Oct 2024
Q18.The following pseudocode is executed using the "Library" dataset. At the end of the execution, `A` captures the number of fiction books which were published between 2000 and 2010 (including 2000 and 2010) and are written in a language other than English. Choose the correct code for procedure `doSomething` to complete the pseudocode.
```
A = 0
while(Table 1 has more rows){
Read the first row X in Table 1
A = A + doSomething(X)
Move X to Table 2
}
```