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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started