Computer Science, asked by 1234561993, 7 months ago

12) The following pseudocode is executed using the "Paragraph words" 6 points
dataset. At the end of the execution, Count captures the number of verbs with
letter countless than the average letter count of verbs. But the pseudocode may
have mistakes in one or more lines. Identify all such lines (if any). It is a multiple
Select Question (MSQ).
1 SumT=0, Count = 0
2 while (Pile 1 bas more cards) {
3 Read the top card X in Pile 1
4 Sum, Count = AddirVerb(X)
5
Move X to Pile 2
6 }
7 AvgT = Sum / Count
8 Count B = 0
9 while (Pile 2 has more cards) {
10 Read the top card X in Pile 2
11 if (X. LetterCount < AvgT) {
12
Count B = Count B + 1
13 }
14 Move X to Pile 1
15}
16 Procedure AddIiVerb (Y, SumT, Count T)
17 if (Y.PartOfSpeech == "Verb") {
18
SumT=Y.LetterCount
19
CountT = CountT + 1
20 3
21 return (SumT, CountT)
22 End AddIVerb
Error in Line 4
Error in Line 8
Error in Line 11
Error at Line 12
Error in Line 17
Error at Line 18
Error in Line 21​

Answers

Answered by anusanziya
2

Answer:

error in line 4,

error in line 11

error in line 18

Similar questions