Padma Seshadri Bala Bhavan Senior Secondary School, K.K.Nagar XII Std. – Holiday Homework (2017-18) Computer Science 1. Write a function void digitcount() that counts and displays the number of digits present in a file “story.txt”. Example: If the file contains The school has 10 branches. It is started in the year 2006.It has 10 sections from 1 to 12. Then the output should be 11 2. Write a function in c++ to count the number of three letter words in the file “grammar.txt”. Example: If the file contains: A boy is playing there. I love to eat pizza. A plane is in the sky. Then the output should be 4 3. Write a function in c++ that reads the content of the text file “order.txt” and displays the words that begin and end with the same alphabet, ignoring the case Example: if the file contains Yearly dividend paid to the public share holder and every employee of Northern branch could claim the same by submitting the xerox copy of their Health card. Then the output should be : Yearly dividend employee Northern Xerox Health 4. Write a function to count the number of words having first character capital and whose length is odd and print the same, from a text file word.txt Ex : If the file content is : Do less Thinking and pay more attention. Do less Acquiring and pay more Attention to what you have. Do Less Complaining and pay more Attention to giving. Do Less criticizing and pay more Attention to Complementing. Do less talking and pay more attention to SILENCE. Output will be: Total words are: 7 5. Assume that a text file named “MATHS.TXT” contains text and some mathematical operators written into it. “MATHS.TXT” contains only five types of operator ‘+’ , ‘−’ , ‘*’ , ‘/’ , ‘=’. Write a function named copyoperator() that reads the file “MATHS.TXT” and create a new file named “OPERATOR.TXT”, to contain only operators from the file “MATHS.TXT”. In “OPERATOR.TXT” operators are separated by comma. For example: If “MATHS.TXT” contains Result of 2 + 4 * 3 = 14 Result of 16 / 2 + 1 = 9 Then the file “OPERATOR.TXT” shall contain + , * , = , / , +, =