Examlex

Solved

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

question 17

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
SAVE-NAME == NAME
(ELSE)
ENDIF
Write NAME, AMT
NAME-ACCUM == NAME-ACCUM + AMT
Read NAME, AMT
ENDDO
Stop
If the following records are input,what is the value of NAME-ACCUM after the instructions corresponding to the pseudocode are executed?
John     20.00
John     30.00
Mary    10.00
Sue     50.00


Definitions:

Buyers

Individuals or organizations that purchase goods or services for personal use, resale, or production of other goods and services.

Sellers

Individuals or entities that offer goods or services in exchange for financial compensation.

Supply Schedule

A table that shows the relationship between the price of a good and the quantity of that good a seller is willing to supply to the market at various prices.

Sellers

Individuals or entities that offer goods or services for sale in the marketplace.

Related Questions