Share
Explore BrainMass

User Input and Output Strings

User Requirements:
Use VB to develop an application that will allow the user to input a character string, and produce the following result:

Output the string rotated to the right by a user-defined number of characters (0 or more). For example, "Hello world!" rotated by 2 characters would be: "d!Hello worl".
Output the string rotated left by a user-defined number of characters (0 or more).
Output the string backwards. That means "Hello world!" becomes "!dlrow 0lleH".
Output the number of characters in the string. For example, "Hello world!" has 12 characters.
Output the string with the spaces replaced by underscores. "Hello world!" becomes "Hello_world!"

Program Requirements:
You must center all forms on the screen using a common procedure.
You must use at least one user-defined function and one user-defined SUB procedure.
You need to provide a way to exit the program gracefully.

Solution Summary

The use VB to develop an application that will allow the user to input a character string, and produce is determined.

$2.19