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:

Sale of Land

The process of transferring ownership of a parcel of land from one party to another through a legal sale agreement.

Impossibility

A doctrine under which a party to a contract is relieved of his or her duty to perform when that performance has become impossible because of the occurrence of an event unforeseen at the time of contracting.

Express Condition

A clearly stated, specific requirement within a contract that must be met for the contract's promises to be enforceable.

Rose Bowl

A historic American annual college football bowl game played in Pasadena, California.

Related Questions