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

You might also like to view...

What is the event that is generated when an MDI child is closed or activated?

a) MdiChildStatusChanged b) MdiChildActivate c) MdiChildModified d) MdiChildCA

Computer Science & Information Technology

You can create vector drawings by combining several shapes within a rectangular area called a(n) drawing area.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

To manage computer systems and their software, businesses usually have an IT department.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

In general, according to recent reports by the Pew Internet & American Life Project, individuals with a lower level of income or a lower level of education are more likely to go online.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology