Create a method that will accept a string

Assignment Help DOT NET Programming
Reference no: EM132084402

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

Reference no: EM132084402

Questions Cloud

Create a custom function named purchasetoarray : Create a custom function named PurchaseToArray that will split apart the user's list text string into an array of individual items.
At what price would these bonds sell in the marketplace : At what price would these bonds sell in the marketplace? How many bonds would the firm have to issue to raise $1 million?
What is the typical size of a ntfs file record : What are the differences between a non-resident file and a resident file? How do you know if the file is resident?
Shares of common stock outstanding : If a firm has 43.30 million shares of common stock outstanding at a price of $30.55 per share. It also has 367000.00 bonds outstanding with a current price
Create a method that will accept a string : 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.
Trend analysis of statements of cash flows : What does a trend analysis of statements of cash flows tell?
Conclusion on stock valuation and price targets : Why do stock analysts reach different conclusion on stock valuation and price targets?
What is the decimal equivalent of 15h : Show the result of adding A. and B. Show all bits produced by the addition. Show 0C5h as an 8-bit binary number.
Required return on the company stock : (a) what would happen to the firm's WACC? What would happen to the required return on the company's stock?

Reviews

Write a Review

DOT NET Programming Questions & Answers

  Develop web services based application

Develop and test a Web services based application that meets the requirements applying SOA design principles.

  Design style elements in asp

Add drop down lists for modifying the different style elements for the label element that displays the time

  Create a shopping cart in asp

The users will use a browser to access the on-line store. The web server software for the production web server is Windows 2003 Server /IIS6.

  Inventory management system in c# application

Inventory management system in c# application

  Using .net resources to teach .net

This project will use the .NET framework to produce a set of materials to demonstrate the fundamental principles of .NET. Ideally it should demonstrate some of the principles of the framework e.g. interoperability.

  Prepare a marymount faculty site

Prepare a Marymount faculty site

  Blinky lights

Analysis proving that your code blinks the LEDs at the specified rates.

  Prepare a web application

Prepare a web application that will be used to keep track of patients registering in a hospital.

  Implementing the insurance management system

Implementing the Insurance Management System and implementation of Components as Web Services.

  Describe the characteristics of visual studio 2005

Describe the characteristics of Visual Studio 2005 Visual Studio.Net is a suite of products that includes 4 main languages. Name these languages and outline their use in industries

  What is a connectionstring

What is a ConnectionString. Give a suitable example to illustrate the various part of a ConnectionString

  Prepare a web application for internet service provider

Prepare a Web application and write the code also event planning document base. This web application allows the user to sign up for an Internet service provider for home connectivity.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd