Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals Design And Implementation

Authors: KROENKE DAVID M.

1st Edition

8120322258, 978-8120322257

More Books

Students also viewed these Databases questions