question archive   DDartmoor Medical Associates maintains two patient files—one for the Lakewood office and one for the Hanover office

  DDartmoor Medical Associates maintains two patient files—one for the Lakewood office and one for the Hanover office

Subject:Computer SciencePrice: Bought3

 

DDartmoor Medical Associates maintains two patient files—one for the Lakewood office and one for the Hanover office. Each record contains the name, address, city, state, and zip code of a patient, with the file maintained in zip code order. Write the flowchart or pseudocode that merges the two files to produce one master name and address file that the Dartmoor office staff can use for addressing the practice’s monthly Healthy Lifestyles newsletter mailing in zip code order. Required: Data Dictionary, Hierarchy Chart, Flowchart, and Pseudocode

 

 

 

 

 

Pseudocode:

 

start

perform housekeeping( )

while bothDone = "N"

perform mainLoop( )

perform finishUp( )

stop

 

housekeeping( )

declare variables

open files

perform readLakewood( )

perform readHanover( )

if lakeZip = 99999 then

if hanZip = 99999 then

bothDone = "Y"

endif

endif

return

 

readLakewood( )

read lakeRec

if eof then

lakeZip = 99999

endif

return

 

readHanover( )

read hanRec

if eof then

hanZip = 99999

endif

return

 

mainLoop( )

if hanZip

write hanName, hanAdd, hanCity, hanState, hanZip

perform readHanover( )

else

write lakeName, lakeAdd, lakeCity, lakeState, lakeZip

perform readLakewood( )

endif

if lakeZip = 99999 then

if hanZip = 99999 then

bothDone = "Y"

endif

endif

return

 

finishUp( )

close files

return

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE