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
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