Write a program that will read a paragraph into an array. Each word should then be stored in a pointer array. Punctuation characters should be ignored. Using the pointer array, print the words out in the original order, reverse order and backwards. Without using any C++ library string functions, print the number of letters in each word. Also keep track of the number of words read, the length of the longest word, the length of the shortest word and number of times each word length occurred.
The screen should pause after each section of output. Label your output. The
maximum length of the paragraph should be 256 characters (or the size of your input buffer).The pointer array should be large enough to handle 20 words. Save the file as MYSTRING.CPP or MAIN.CPP
Create a flowchart prior to writing your code to develop a well-structured program.
Example:
This is such a fun class. I really enjoy learning all there is to
know about C++.
Original Order Reverse Order Backwards
This is |
|
C++ about |
sihT si |
such |
|
know |
hcus |
a fin class |
|
to is there |
a nuf ssalc |
I really enjoy |
|
all learning enjoy |
I yllaer yojne |
learning all there |
class |
really I |
gninrael lla ereht |
is to know |
|
fin a such |
si ot wonk |
about |
is |
tuoba |
C |
This |
C |
Number of letters
This |
4 |
is |
2 |
such |
4 |
a |
1 |
fun |
3 |
class |
5 |
I |
1 |
really |
6 |
enjoy |
5 |
learning |
8 |
all there 5 |
3 |
is |
2 |
to |
2 |
know |
4 |
about 5 C++ |
3 |
Number of words: 17
Longest word length: 8
Shortest word length: 1
DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma
Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t
Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th
1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of
1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of