using System.Collections.Generic;
public string Name{get; set;}
public string Education {get; set;}
public Customer(string N, string Ed, string Em)
public List<Customer> CustList=new List<Customer>();
CustNew= new Customer("John","Bachelor","john@gmail.com");
CustNew= new Customer("David", "Bachelor", "david@iu.edu");
CustNew= new Customer("Anderson", "Master", "anderson@iu.edu");
CustNew= new Customer("Mary","Master", "maryiu.edu");
Console.WriteLine("Show All List");
foreach(Customer c in CustList)
Console.WriteLine(c.Name.PadRight(15)+ c.Education.PadRight(15)+ c.Email);
Console.WriteLine("=============================================");
Console.WriteLine("Show Email Length for all list");
foreach(Customer c in CustList)
Console.WriteLine(c.EmailLength());
Console.WriteLine("=============================================");
Console.WriteLine("Show Only Bachelor");
string strtype="Bachelor";
foreach(Customer c in CustList)
if (c.Education==strtype)
Console.WriteLine(c.Name.PadRight(15)+ c.Education.PadRight(15)+ c.Email);