Q13.A long word is defined as a word having at least 6 letters. The given pseudocode is used to find the average number of letters per word for long words from the "Words" dataset. Choose the correct code fragment to complete the pseudocode.
```
letterCount = 0, wordCount = 0, avgLetPerWord = 0
while(Table 1 has more rows){
Read the first row X in Table 1
***************
* Fill the code *
***************
}
avgLetPerWord = letterCount / wordCount
```
Save
Check
Details
Q13
5 Jun 2022
Q13.A long word is defined as a word having at least 6 letters. The given pseudocode is used to find the average number of letters per word for long words from the "Words" dataset. Choose the correct code fragment to complete the pseudocode.
```
letterCount = 0, wordCount = 0, avgLetPerWord = 0
while(Table 1 has more rows){
Read the first row X in Table 1
***************
* Fill the code *
***************
}
avgLetPerWord = letterCount / wordCount
```