A text analyst wants to analyze a text file (refer to File.txt on Moodle). She wants to
Question:
A text analyst wants to analyze a text file (refer to File.txt on Moodle). She wants to find out the total number of sentences in the text file. She would also like to know if there are acronyms in the text file and keep a count of them so that she can improve the text file later. “Computational thinking is a way of thinking about problem-solving that grew out of computer science. With computational thinking, we learn how to break problems down, create algorithms to solve them and generalize those solutions so we can solve even bigger problems. Often, though, we want to teach a computer to execute those algorithms for us, and that’s where coding comes in.”
a.Write a detailed algorithm and illustrate the problem design with the help of a flowchart to count the total number of sentences and acronyms in the text file. 6+6 Marks
b.Write a program in python that takes the text file as input and displays the count of sentences as well as acronyms in it.
Fundamental Statistics for the Behavioral Sciences
ISBN: 978-1285076911
8th Edition
Authors: David C. Howell