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
ELSE
Write NAME, AMT
NAME-ACCUM 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
Q20: Given the following input records,how many lines
Q21: Given the following pseudocode:<br>Start<br>FINAL-ACCUM <span
Q22: In control-break processing,the input records must be
Q23: What type of report outputs one line
Q24: An intermediate total and a final total
Q26: We know that a control break has
Q27: An intermediate total reflects accumulated data about
Q28: The detail-processing module is called each time
Q29: It is always better to output a
Q30: A detail-printed report only outputs detail lines.