Question: We have a character array that contains a complete paragraph the Moon is a barren, rocky world without air and water. it has dark lava
We have a character array that contains a complete paragraph the Moon is a barren, rocky world
without air and water. it has dark lava plain on its surface the Moon is filled wit craters, it has
no light of its own. it gets its light from the Sun. The Moo keeps changing its shape as it moves
round the Earth, it spins on its axis in 27.3 days stars were named after the Edwin Aldrin were the first ones to set their foot on the Moon on 21 July 1969 They reached the Moon in their spacecraft named Apollo II."
We have grammatical mistakes in this paragraph. Now the task for you is to write C++ program
that iterates through the array using pointers and corrects all the grammatical mistakes,
Rules to fix the Grammatical mistakes.
We can't have consecutive spaces in sentence.
There should be no space before the full stop. After Every Full stop, there should be a space.
The first character of Each Sentence must be capitalized.
After fixing all the grammatical mistakes in the assignment The Program should display a grammatically correct paragraph
Note: You can't directly access the values of the array using the index.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
