Create a method that will accept a string as an argument


INSTRUCTIONS: In C# (Keep it all in the Main CS file)

Problem : Email Checker using String Objects in C#

Create a method that will accept a String as an argument and then check to see if the String follows the pattern of an email address.

You must check the following:

1. Only one @ symbol in the whole string

2. No spaces

3. At least one dot after the @ symbol

4. There is no need to check for .com, .org, etc. 5. The code should work for any string entered.

• User Input (Prompt In Main Method, Use As Arguments): o String of an email address

• Return Value From Custom Function To Main Method: o "valid" or "invalid"

• Result to print to the console in the Main Method:

"The email address of X is a valid email address." or "The email address of X is not a valid email address."

Request for Solution File

Ask an Expert for Answer!!
DOT NET Programming: Create a method that will accept a string as an argument
Reference No:- TGS02877861

Expected delivery within 24 Hours