Task 1 Validating an e-mail address
When entering email addresses systems often use a simple form of validation to ensure that the address entered is possible.
For the purposes of this task an email address must:
• Start with a string of alphanumeric characters
• followed by the @ symbol
• another string of alphanumeric characters
• followed by a “ . ”
• then a string of alphanumeric characters.
Eg a@b.c and ab23@f45.d3 are both valid but @bc.d and 123.c@cvb are not valid
Design code and test a program to:
• Accept an input string and check its validity.
• Output VALID or INVALID accordingly.