Writer a program that allows the user to enter an unknown


Question: Writer a program that allows the user to enter an unknown number of characters, stores those characters in a data structure (a vector) and then prints the values to the screen.

An example :

witness my exciting first use of vectors!

Enter as many letter as you like, enter ! to quit.

enter a letter: b

enter a letter: u

enter a letter: r

enter a letter: r

enter a letter: p

enter a letter: !

Great! You entered: burrp

The first character is : b

The last character is : p

Note: the exclamation point was never stored in the vector.

Goal: recognize that vector objects allow greater flexibility that arrays and how to use a vector in a program.

You have to find that vector objects allow greater flexibility and how to use a vector. You do not need to identify size when using vectors.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Writer a program that allows the user to enter an unknown
Reference No:- TGS0958392

Expected delivery within 24 Hours