Q4Single correct5 Marks28 Apr 2024
What will N represent at the end of the execution?
The following pseudocode is executed using the "Shopping Bills" dataset. Assume that customer names are distinct.
```
A = 0, N = 0
while(Table 1 has more rows){
Read the first row X in Table 1
Move X to Table 2
while(Table 1 has more rows) {
Read the first row Y in Table 1
if(X.CustomerName == Y.CustomerName){
A = A + 1
Move Y to Table 2
}
else{
Move Y to Table 3
}
}
if(A > N){
N = A
}
A = 0
Move all rows from Table 3 to Table 1
}
```