how many lines will be output if the following records are input?
Given the following pseudocode:
```
Start
FINAL-ACCUM = 0
NAME-ACCUM = 0
Read NAME, AMT
SAVE-NAME = NAME
DOWHILE not EOF
IF NAME ? SAVE-NAME THEN
Write NAME-ACCUM
FINAL-ACCUM = FINAL-ACCUM + NAME-ACCUM
NAME-ACCUM = 0
SAVE-NAME = NAME
ELSE
Write NAME, AMT
NAME-ACCUM = NAME-ACCUM + AMT
ENDIF
Read NAME, AMT
ENDDO
Write FINAL-ACCUM
Stop
```
John 20.00
John 30.00
Mary 10.00
Mary 6.00
Sue 8.00
Sue 5.00
a) 7
b) 9
c) 10
d) 11
a) 7
Computer Science & Information Technology