5(a)String HandlingMedium4 marks
Data is stored about people who have attended a job interview. Each interview is held at one of three office locations.
Each person's data is stored as a data packet made up of four data items:
• The initial is a single character.
• The shortened surname is the first five characters of the surname. You can assume all surnames are at least five characters.
• The office code is a single character 'A', 'B' or 'C'.
• The interview summary text is of variable length.
Example:
Peter Watkins was interviewed at office 'B'. After the interview it was decided to invite him for a second interview. His data packet is stored by variable Applicant:
Applicant ← "PWatkiBSecond interview"A pseudocode function InterviewSummary() will:
• take the data packet as a single parameter
• return the interview summary text.
Write the pseudocode for the function InterviewSummary()
Answer
0 words