Question: Prompts the user at the command line for one 3 - character string. Verify this first string contains 3 characters; if not, print error and

Prompts the user at the command line for one 3-character string.
Verify this first string contains 3 characters; if not, print error and exit
program.
Then prompt the user for a 4-character string.
Verify this second string contains 4 characters; if not, print error and
exit program.
Print out the two input strings with one space between them.
Finally prints on a separate line the two input strings 'in reverse' (see
example below) with a space between them.
So, for example, if the first string is 'use' and the second string is 'this',
your program would output something like the following:
The two strings you entered are: use this.
The two strings in reverse are: siht esu.
Note that the reversed SECOND string comes FIRST when printing the
strings in reverse.
This program must be completed WITHOUT using loops and without using
StringBuilder.
Prompts the user at the command line for one 3 -

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!