public static void Main()
string strItemCode = "sony-dvd-062019";
string[] breakdown = strItemCode.Split('-');
string manufacturerCode = breakdown[0];
string productCode = breakdown[1];
string month = breakdown[2].Substring(0, 2);
string year = breakdown[2].Substring(2);
Console.WriteLine("Manufacturer: {0}, Product: {1}, Month: {2}, Year: {3}", manufacturerCode, productCode, month, year);
Console.Write("Please type an email address");
string emailAddress = Console.ReadLine();
if (emailAddress.Contains("@"))
int index = emailAddress.IndexOf("@");
string userName = emailAddress.Substring(0, index);
string domain = emailAddress.Substring(index + 1);
Console.WriteLine("the username is" +userName+ " the domain is" + domain);
Console.WriteLine("Invalid email address.");