teach-ict.com logo

THE education site for computer science and ICT

Answer: Question 19


The club_members array needs to hold this information

 

NOTE: the following answer is our version, however you may have come up with a different answer

The pseudocode for creating this array is:

   club_members = [[001,'Andy','Murray','SW1 6DF'],['002','Jack','Nicholson','BR1 4DF'],
   ['003','Kate','Winslett','MM4 2DQ']]

What we have done is name the array 'club_members'.

Next we put all of the contents within a set of square brackets (shown in bold)

We then set the values of each row within the array within its own set of square brackets.