Q13.The following pseudocode is executed using the "Library" dataset. Procedure `biGenre(A)` returns True if the author A has written a more number of non-fiction books than fiction books. Choose the correct code fragment(s) to complete the pseudocode. Assume that the dataset has only two possible genres.
```
Procedure biGenre(A)
count = 0
while(Table 1 has more rows){
Read the first row X in Table 1
Move X to Table 2
********************
* Fill the code *
********************
}
if(count < 0){
return(True)
}
return(False)
End biGenre
```
Save
Check
Details
Q13
23 Feb 2025
Q13.The following pseudocode is executed using the "Library" dataset. Procedure `biGenre(A)` returns True if the author A has written a more number of non-fiction books than fiction books. Choose the correct code fragment(s) to complete the pseudocode. Assume that the dataset has only two possible genres.
```
Procedure biGenre(A)
count = 0
while(Table 1 has more rows){
Read the first row X in Table 1
Move X to Table 2
********************
* Fill the code *
********************
}
if(count < 0){
return(True)
}
return(False)
End biGenre
```