private double _yearlysalary;
public double YEARLYSALARY
public double CalculateSalary(string strType)
Salary = _yearlysalary / 12;
else if (strType == "quarter")
Salary = _yearlysalary / 4;
else if (strType == "year")
public string GetFirstThreeLetter()
str3 = NAME.Substring(0,3);
public static void Main()
Employee employee1 = new Employee();
employee1.YEARLYSALARY = 75000;
string string1 = employee1.GetFirstThreeLetter();
Console.WriteLine("The first three letters of this employees name are: "+ string1);
double dmonth = employee1.CalculateSalary("month");
Console.WriteLine("Monthly salary is equal to "+ dmonth);
double dquarter = employee1.CalculateSalary("quarter");
Console.WriteLine("Monthly salary is equal to "+ dquarter);
double dyear = employee1.CalculateSalary("year");
Console.WriteLine("Monthly salary is equal to "+ dyear);