using System.Collections.Generic;
static bool isEligible_To_promote_Exp(Employee emp)
static bool isEligible_to_promote_perf(Employee emp)
static bool isEligible_to_promote_ExpWithperf(Employee emp)
if (emp.experience >= 5 && emp.highperf)
static void printPromotionList(List<Employee>EmployeeList)
foreach (Employee emp in EmployeeList )
Console.WriteLine(emp.Name + " Promoted");
public static void Main()
List<Employee> empl = new List<Employee>();
empl.Add(new Employee() { ID = 101, Name = "Ravi", salary = 20000, experience = 3, highperf=true });
empl.Add(new Employee() { ID = 102, Name = "John", salary = 30000, experience = 5, highperf=false });
empl.Add(new Employee() { ID = 103, Name = "Mary", salary = 50000, experience = 8, highperf=true });
empl.Add(new Employee() { ID = 104, Name = "Mike", salary = 10000, experience = 2, highperf=false });
printPromotionList(empl);
printPromotionList(empl);
printPromotionList(empl);