Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5 Lab exercise-5 Write a C++ program which can read an English sentence (string). The program should output a corrected sentence- with spacing corrected (compressing

5

image text in transcribed

Lab exercise-5 Write a C++ program which can read an English sentence (string). The program should output a corrected sentence- with spacing corrected (compressing extra spaces) and with letters corrected (for capitalization). The sentence should start with an uppercase letter, but should contain no other uppercase letters (ignore capitalizing proper nouns). Assume that the sentence contains only one period (at the end 1. Sample output is as follows. Enter a sentence: the answer to LIFE, the Universe, and EVERYTHING The answer to life, the universe, and everything is 42. is 42. 2. Look up on the internet and find out what Edit Distance is and see an implementation in C++. Implement this to check how close are two bunches of texts. Discuss about the time complexity of the algorithm with the instructor

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Graph Databases

Authors: Ian Robinson, Jim Webber, Emil Eifrem

1st Edition

1449356265, 978-1449356262

More Books

Students also viewed these Databases questions