Matching Function to Points without Sliders

Use the dragable x and y lines to help write a sine function in the input area to match the points The function is to be written in the form y = a sin(k(x - d)) + c