public string NAME {get; set;}
public int AGE {get; set;}
public Student (string name, int age, double gpa)
public double ShowGPA(string strType)
if (strType == "regular")
else if (strType == "adjusted")
public string LuckyDraw(string YesNo)
public static void CallFunction(int iInput, ref double dInput)
public static void Main()
Student Student1 = new Student(strName, iAge, dGPA);
Console.WriteLine("Regular GPA: " + dGPA);
Console.WriteLine("Adjusted GPA: " + dGPA);
Console.WriteLine("Lucky Draw? " + "true");
Console.WriteLine("=================");
Console.WriteLine("Age:{0}, GPA:{1}",iAge, dGPA);
CallFunction(iAge, ref dGPA);
Console.WriteLine("Age:{0}, GPA:{1}",iAge, dGPA);