logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

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.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

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

 

(5/5)
Attachments:

Expert's Answer

985 Times Downloaded

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

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. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

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

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

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

. 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 Sea Ports. Here are the classes and their instance variables we wish to define:

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

985 Times Downloaded

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Um e HaniScience

835 Answers

Hire Me
expert
Muhammad Ali HaiderFinance

775 Answers

Hire Me
expert
Husnain SaeedComputer science

780 Answers

Hire Me
expert
Atharva PatilComputer science

535 Answers

Hire Me