The problem is here
public GetValue (double firstvalue, double secondvalue)
you define a function by giving the accessibility (public, private), then the return type, then the function name. You don't have the return type. If the function doesn't return anything then use void as the return type.
public void GetValue (double firstvalue, double secondvalue)