Examlex

Solved

Given the Following Pseudocode:
Start
FINAL-ACCUM =0= 0 NAME-ACCUM =0= 0 Read NAME, AMT
SAVE-NAME

question 25

Multiple Choice

Given the following pseudocode:
Start
FINAL-ACCUM =0= 0
NAME-ACCUM =0= 0
Read NAME, AMT
SAVE-NAME == NAME
DOWHILE not EOF
IF NAME \neq SAVE-NAME THEN
Write NAME-ACCUM
FINAL-ACCUM = FINAL-ACCUM + NAME-ACCUM
NAME-ACCUM =0= 0
ELSE
Write NAME, AMT
NAME-ACCUM == NAME-ACCUM +AMT+ \mathrm { AMT }
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


Definitions:

Pyelonephritis

Infection of the kidneys, often caused by an initial infection in one of the ureters.

Glomerular (Bowman's) Capsule

A cup-like sack at the beginning of the tubular component of a nephron in the kidney, playing a critical role in the filtration of blood to form urine.

Filters

Devices or processes used to remove impurities or separate substances.

Urea

A waste product formed in the liver during the breakdown of proteins, excreted in urine.

Related Questions