Examlex

Solved

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

question 21

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)
ENDIF
Write NAME, AMT
NAME-ACCUM == NAME-ACCUM + AMT
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:

Segmented Labour Market

A labor market split into separate segments or sectors, each with its own characteristics and rules, often leading to inequality.

Cree First Nation

The Cree First Nation is one of the largest groups of First Nations in North America, located in regions of Canada spanning from Ontario to the Rocky Mountains.

Unionized Factory

A manufacturing facility where the workforce is organized into a union, which negotiates collectively for wages, hours, and working conditions.

Professional Labour Market

The segment of the labor market comprised of jobs that require specialized knowledge and often higher education, typically associated with professional licensure or certification.

Related Questions