Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamental Statistics for the Behavioral Sciences

Authors: David C. Howell

8th Edition

1285076915, 978-1285076911

More Books

Students also viewed these Programming questions

Question

3. Dont make threats or raise your voice.

Answered: 1 week ago

Question

Complete the following acid-base reactions: (a) HCCH + NaH

Answered: 1 week ago