Task 1: "Valid Phone Numbers You are given a text file. Write a script to display all valid phone numbers in the given text file. Acceptable Phone Number Formats +nn nnnnnnnnnn (nn) nnnnnnnnnn nnnn nnnnnnnnnn Input File 0044 1148820341 +44 1148820341 44-11-4882-0341 (44) 1148820341 00 1148820341 Output 0044 1148820341 +44 1148820341 (44) 1148820341 " My notes: as the valid formats are fixed, just a load of regexes. Would have been more interesting if the formats were inputs too. Task 2: "Transpose File You are given a text file. Write a script to transpose the contents of the given file. Input File name,age,sex Mohammad,45,m Joe,20,m Julie,35,f Cristina,10,f Output: name,Mohammad,Joe,Julie,Cristina age,45,20,35,10 sex,m,m,f,f " My notes: simple to state. Basically read into 2-D array and transpose array.