public string NAME { get; set; }
public int AGE { get; set; }
Console.WriteLine("Please enter a non-negative GPA");
public Student(string strInput, int iInput, double dblInput)
public double ShowGPA(string strType)
if(strType == "adjusted"){
public Boolean LuckyDraw()
Boolean bRet = (AGE%4) == 0;
public static void CallFunction(int iInput, ref double dInput)
public static void Main()
Student student1 = new Student(strName, iAge, dGPA);
Console.WriteLine(student1.ShowGPA("regular"));
Console.WriteLine(student1.ShowGPA("adjusted"));
Console.WriteLine(student1.LuckyDraw());
Console.WriteLine("=================");
Console.WriteLine("Age:{0}, GPA:{1}",iAge, dGPA);
CallFunction(iAge, ref dGPA);
Console.WriteLine("Age:{0}, GPA:{1}",iAge, dGPA);