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
Step: 1
Answer 1 Algorithm For other uses seeAlgorithm disambiguation Inmathematicsandcomputer science analgorithmlrmlisten is a finite sequence ofwelldefined computerimplementable instructions typically to s...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started