program ci : : - repeat :( +jdiv if [kthen : else : + end until hintall programs must terminate with ak xif such an element existsor ak xif there exists no element with value company organizes poll to determine the success of its products its products are records and tapes of hitsand the most popular hits are to be broadcast in hit parade the polled population is to be divided into four categories according to sex and age (sayless or equal to and older than every person is asked to name five hits hits are identified by the numbers to (sayn the results of the poll are to be appropriately encoded as sequence of characters hintuse procedures read and readint to read the values of the poll type hit integerreponse record namefirstnamenamemalebooleanageintegerchoicearray of hit endvar pollfiles file this file is the input to program which computes the following results list of hits in the order of their popularity each entry consists of the hit number and the number of times it was mentioned in the poll hits that were never mentioned are omitted from the list four separate lists with the names and first names of all respondents who had mentioned in first place one of the three hits most popular in their category the five lists are to be preceded by suitable titles references [ oj dahle dijkstrac hoare structured programming genuysed new yorkacademic press [ hoarein structured programming [ ]pp - [ jensen and wirth pascal -user manual and report springer-verlag [ wirth program development by stepwise refinement comm acm no ( ) - [ wirth programming in modula- springer-verlag [ wirth on the composition of well-structured programs computing surveys no ( - [ hoare the monitoran operating systems structuring concept comm acm (oct ) - [ knuthj morrisand pratt fast pattern matching in strings siam comput (june ) - [ boyer and moore fast string searching algorithm comm acm (oct )