Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Step: 3

blur-text-image

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

Intelligent Information And Database Systems 6th Asian Conference Aciids 2014 Bangkok Thailand April 7 9 2014 Proceedings Part I 9 2014 Proceedings Part 1 Lnai 8397

Authors: Ngoc-Thanh Nguyen ,Boonwat Attachoo ,Bogdan Trawinski ,Kulwadee Somboonviwat

2014th Edition

3319054759, 978-3319054759

More Books

Students also viewed these Databases questions

Question

2. What potential barriers would you encourage Samuel to avoid?

Answered: 1 week ago