Class 12 CS Chapter 5 Back Exercise Part C Solutions Sumita Arora New Syllabus / listing12CSSA, Uncategorized / By Neha 2. A file sports.dat contains information in following format : Event ~ Participant Write a function that would read contents from file sports.dat and creates a file named Atheletic.dat copying only those records from sports.dat where the event name is “Atheletics”. ...click here for answer 3. A file contains £ list of telephone numbers in the following form : ...click here for answer 4. Write a program to count the words “to” and “the” present in a text file “Poem.txt”. ...click here for answer 5. Write a program to count the number of upper- case alphabets present in a text file “Article.txt”. ...click here for answer 6. Write a program that copies one file to another. Have the program read the file names from user ? ...click here for answer 7. Write a program that appends the contents of one file to another. Have the program take the filenames from the user. ...click here for answer 8. Write a program that reads characters from the keyboard one by one. All lower case characters get stored inside the file LOWER, all upper case characters get stored inside the file UPPER and all other characters get stored inside file OTHERS. # Code ...click here for answer 9. Write a function in Python to count and display the number of lines starting with alphabet ‘A’ present in a text file ” LINES.TXT”. e.g., the file “LINES.TXT” contains the following lines : A boy ...click here for answer