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