using System;
public class Student
{
//field
public string Status;
public double GPA;
public bool SpringBreak;
public int NumClasses;
//constructor
public Student()
Status = "in class";
GPA = 3.5;
SpringBreak = true;
NumClasses = 4;
}
//method
public double CalcWeightedGPA(string weight)
if(weight=="high")
GPA = GPA*1.15;
return GPA;
//call constructor and test method
public static void Main()
Student StudentOneObject = new Student();
Console.WriteLine(StudentOneObject.CalcWeightedGPA("low"));