public static void Main()
Console.WriteLine("Please type an item code");
string strItemCode = Console.ReadLine();
string[] strArray = strItemCode.Split('-');
string month = strItemCode.Substring(9, 2);
string year = strItemCode.Substring(11, 4);
Console.WriteLine("Manufacturer:" + strArray[0]);
Console.WriteLine("Month:" + month);
Console.WriteLine("Year:" + year);
Console.WriteLine("Please enter an email address");
string stremail = Console.ReadLine();
if (!stremail.Contains("@"))
Console.WriteLine("Please enter a valid email.") ;
int position = stremail.IndexOf("@");
string strUsername = stremail.Substring(0, position);
string domain = stremail.Substring(position + 1);
Console.WriteLine("The username is ;" + strUsername);
Console.WriteLine("The domain is ;" + domain);