Question: Develop a C# console application that has a string input variable. Ask the user to enter a string of at least 10 characters. Assign the
Develop a C# console application that has a string input variable.
Ask the user to enter a string of at least 10 characters.
Assign the console input to the string input variable.
Use a loop to hold a check the string for a length of less than 10 characters. If the string length is less than 10 characters, then the user should be requested to provide an input of at least 10 characters. If the length of the input is greater than or equal to 10, then accomplish the following three tasks:
Output the first 5 characters of the input string
Replace all spaces in the string with asterisks (*)
Change all of the string characters to upper case
The output should look something like this:
Enter a string of at least 10 characters this is The string you entered is less than 10 characters Enter a string of at least 10 characters this is a test
The first five characters of the string are: this
Replacing all spaces with *: this*is*a*test
Changing the string characters to upper case: THIS IS A TEST
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
