logo Use SA10RAM to get 10%* Discount.
Order Now logo

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

expert
Bill BattershillPhilosophy
(5/5)

726 Answers

Hire Me
expert
Himanshi TanwarData mining
(5/5)

561 Answers

Hire Me
expert
Dai AndrewsGeneral article writing
(5/5)

810 Answers

Hire Me
expert
Jesus DiazzEconomics
(5/5)

529 Answers

Hire Me
C++ Programming

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

 

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. 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

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme

Get Free Quote!

345 Experts Online