Console.Write("Enter First name: ");
name = Console.ReadLine();
Console.Write("Enter Last name: ");
family = Console.ReadLine();
Console.Write("Enter Degree(0-5): ");
Degree = Convert.ToInt32(Console.ReadLine());
Console.Write("Enter hours: ");
hours = Convert.ToDouble(Console.ReadLine());
z = 900000 + hours * 2500;
z = 1100000 + hours * 3000;
z = 1400000 + hours * 4500;
z = 1800000 + hours * 6500;
z = 2200000 + hours * 10000;
z = 3000000 + hours * 15000;
Console.WriteLine("{0} {1} {2} ====> {3}", name, family, EmpID, z);
public static MyEmp FindMaxTS(MyEmp [] x, int n)
MyEmp temp = new MyEmp(0);
for (int i = 1; i < n; i++)
public static MyEmp FindMinTS(MyEmp[] x, int n)
MyEmp temp = new MyEmp(0);
for (int i = 1; i < n; i++)
public static MyEmp FindMaxhours(MyEmp[] x, int n)
MyEmp temp = new MyEmp(0);
for (int i = 1; i < n; i++)
if (x[i].hours > temp.hours)
public static void Main()
MyEmp[] emp = new MyEmp[5];
for (int i = 0; i < 5; i++)
for (int i = 0; i < 5; i++)
Console.Write("----------------",i);
Console.WriteLine("\n\n List of Employees:");
Console.WriteLine("___________________");
Console.WriteLine("Maxsalari:");
Console.WritLine("maximom salary");
MyEmp MaxEmp=MyEmp.FindMaxTS(emp, 5);
Console.WriteLine("_______________");
Console.WriteLine("Minsalari:");
MyEmp MinEmp=MyEmp.FindMinTS(emp, 5);
Console.WriteLine("________________");
Console.WriteLine("MasHours:");
MyEmp MaxHours=MyEmp.FindMaxhours(emp, 5);
Console.WriteLine("______________");