Design an algorithm to prepare a job applicant report. Input consists of a series of records that contain the Social Security number or equivalent, last name, first name, middle initial, verbal test score, science test score, math test score, and logic test score of each job applicant. Output is to consist of detail lines containing the contents of each input record as well as the average of the four test scores. In addition, averages for each of the four test score categories should be output at the end of the report. Use automatic end of file logic to signal the end of the input.