Multiple Choice
Given the following pseudocode:
Start
FINAL-ACCUM
NAME-ACCUM
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
SAVE-NAME NAME
ELSE
Write NAME, AMT
NAME-ACCUM
ENDIF
Read NAME, AMT
ENDDO
Write FINAL-ACCUM
Stop
How many lines will be output if the following records are input?
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
Correct Answer:

Verified
Correct Answer:
Verified
Q1: Given the following input records,how many lines
Q2: Given the following pseudocode:<br>Start<br>FINAL-ACCUM <span
Q3: A CASE control structure is likely to
Q5: Which of the following statements is a
Q6: A group-printed report never outputs detail lines.
Q7: Given the following input records,how many lines
Q8: The module to process the steps required
Q9: In a control-break program,it is possible to
Q10: When a control break occurs,an intermediate-total line
Q11: Given the following input records,how many lines