import math


def control_simulator(car_loc, speed, steer_angle):
    """
    To simulate a control dll

    Args:
        car_loc (tuple): Tuple of x/y coordinate
        speed (float): Speed of the car in m/s
        steer_angle (int): Angle in degree, absolute angle and not the angle of the steering wheel
    """

    # Calculate the new location of the car using speed/old_car location and steer angle
    car_x1, car_y1 = car_loc
    steer_radians = math.radians(steer_angle)
    car_x2 = car_x1 + (speed * math.cos(steer_radians))
    car_y2 = car_y1 + (speed * math.sin(steer_radians))

    return car_x2, car_y2