Q5Comprehension4 Marks24 Dec 2023
Passage
The following pseudocode is executed using the 'Shopping Bills' dataset. Assume each customer has a distinct name.
```
A = 3, N = 0, count = 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 = 1
count = count + 1
Move all rows from Table 3 to Table 1
}
```
What will N represent at the end of the execution?