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

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.

Step by Step Solution

3.44 Rating (173 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer 1 Algorithm For other uses seeAlgorithm disambiguation Inmathematicsandcomputer science analgorithmlrmlisten is a finite sequence ofwelldefined computerimplementable instructions typically to s... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!