Question: Challenge 1 string exercise: SwapInfo Create a method in C# that prompts the user for their first and last name. Validate and save the user

Challenge 1 string exercise: SwapInfo Create a method in C# that prompts the user for their first and last name. Validate and save the user responses, manipulate this data, and then present it back to the user. Your code should do the following:

1. Display to the user the information they have entered

2. Reverse the order of the information entered

3. Display to the user the new order User Input: Prompt the user at least twice, and request their first and last name Validate the data entered by the user If validation doesnt pass, request information again Console Output: Output to the console information each time it is entered. For example, Your first name is + firstName; Use a method to swap the order of data entered. For example, variable A is now set to the value of Variable B and vice versa. Display the data entered in reverse order

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 Databases Questions!