using System;
public class Employee
{
//1. [Code] (string) Create a public string field (NAME)
//2. [Code] (double) Create a private field (_yearlysalary) and a public properties (YEARLYSALARY)
//Rule: yearly salary should not be negative. If the value is negative, set default value as 36000
//Constructor
public Employee()
}
//3. [Code] Create a function:CalculateSalary()
//Get (monthly, quarterly, or yearly) salary
//Input: string strType
//Output: return a double type
//if strType equals to "month", return monthly salary (monthly salary = yearly salary / 12)
//if strType equals to "quarter", return quarterly salary (quarterly salary = yearly salary / 4)
//if strType equals to "year", return yearly salary
//4. [Code] Create a function: GetFirstThreeLetter()
//Get first three letter from employee's name
//Input: no
//Output: return a string
//Hint: use substring() & NAME variable
public class Program
public static void Main()
//5. [Code] Create an Employee object
//NAME = John; YEARLYSALARY = 75000
//6. [Code] Call object's function
//Call GetFirstThreeLetter() function and print out the information.
//Call CalculateSalary("month") function and print out the information.
//Call CalculateSalary("quarter") function and print out the information.
//Call CalculateSalary("year") function and print out the information.