public static void Main()
string strItemCode = "sony-dvd-062019";
string[] strArray = strItemCode.Split('-');
string strManufacturer= strArray[0];
string strProduct= strArray[1];
string strMonthYear = strArray[2];
string strMonth = strMonthYear.Substring(0,2);
string strYear = strMonthYear.Substring(2);
Console.WriteLine("Manufacturer: {0}", strManufacturer);
Console.WriteLine("Product: {0}", strProduct);
Console.WriteLine("Manufactured: Month= {0}, Year= {1}", strMonth, strYear);
Console.WriteLine("Enter an email address:");
string strEmail = Console.ReadLine();
int iAtIndex = strEmail.IndexOf("@");
Console.WriteLine("Error: Not a valid email address!");
string strUserName = strEmail.Substring(0, iAtIndex);
string strDomain = strEmail.Substring(iAtIndex + 1);
Console.WriteLine("UserName = {0}", strUserName);
Console.WriteLine("Domain = {0}", strDomain);