Answered step by step
Verified Expert Solution
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
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 instructorStep by Step Solution
There are 3 Steps involved in it
Step: 1
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