public void CalcWeightedGPA(string Weight)
Console.WriteLine("Weighted GPA is: {0}", GPA);
else if (Weight == "high")
Console.WriteLine("Weighted GPA is: {0}", GPA);
Console.WriteLine("The entered value must be 'high' or 'low'");
public static void Main()
Student student1 = new Student();
student1.Status = "in class";
student1.SpringBreak = true;
student1.CalcWeightedGPA("low");
student1.CalcWeightedGPA("high");
student1.CalcWeightedGPA("medium");