Assignment7 - Assignment 7 IS 3020 February 14th, 2014 7A...

This preview shows page 1 - 3 out of 7 pages.

The preview shows page 1 - 3 out of 7 pages.
Assignment 7IS 3020February 14th, 20147AstartDeclarationsInputFile masterFileInputFile transFileOutputFile updatedFilenum employeeIdstring employeeFirstNamestring employeeLastNamenum addressnum hourlyRatenum transTotalnum grossPaystring areBothAtEnd= “N”num END_ID = 9999getReady()while areBothAtEnd <> “Y”updateRecords()endwhilefinishUp()stopgetReady()open masterFile “TimelyTalentTemp.txt”open transFile “TimelyTalentTempTransactions.txt”open updatedFile “UpdatedEmployees.txt”readMaster()readTrans()checkEnd()returnreadMaster()input masterEmplployeeID, masterFirstName, masterLastName, masteraddress, hourlyRate,masterGrossRatefrom masterFile
if eof thenemployeeId = END_IDendifreturnreadTrans()input transemployeeId, transaddress, transhourlyRate, transFirstName, transLastName,transGrossPay from transFileif eof thentransemployeeId = END_IDendifreturncheckEnd()if masteremployeeId = END_ID thenif transemployeeId = END_ID thenareBothAtEnd = “Y”endifendifreturnupdateRecords()

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 7 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
STAFF
Tags
NUM

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture