Checking equations of horizontal and vertical lines

One way to check for correct student input is to add an on/off switch and check that the string matches equations like y=5, x=7, or y = 2/3x-8. You can use this activity for horizontal, vertical, or slope-intercept lines. Note that the student must enter the string exactly or they won’t see the graph, so no spaces capital letters.