void raise_salary(Employee& e, double by) { double new_salary = e.get_salary() * ( 1 + by / 100); e.set_salary(new_salary); }