Question: NSTRUCTIONS: In C# (Keep it all in the Main CS file) Problem #1: Email Checker using String Objects in C# Create a method that will

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

Problem #1: 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, such as ccc@ddd.eee

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.

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!