Question: code in python 3 use attached code def solveEq(x1, b1, x2, b2): x = (b2-b1)/(x1-x2) y = x1*x+b1 return (x,y) def parseEq(eq): sides = eq.split(=)
2. Specification - Given the attached code, import the module and use the functions to ask the user for two equations of a lines. Use the module function to decipher the functions and output the intersection point. Currenty only allow basic operations (no parenthesis)...but could support more options in the future. Sample Output: Enter Equation 1: +3 Not valid, must have equal sign Enter Equation 1: y = x+3 Enter Equation 2: y/3 - 100x+(3-10) Not valid, special characters (0) Enter Equation 2: y/3 = -10z+(3-10) Only x and y allowed Enter Equation 2: y = -x Intercept at (-.6666,0) 2. Specification - Given the attached code, import the module and use the functions to ask the user for two equations of a lines. Use the module function to decipher the functions and output the intersection point. Currenty only allow basic operations (no parenthesis)...but could support more options in the future. Sample Output: Enter Equation 1: +3 Not valid, must have equal sign Enter Equation 1: y = x+3 Enter Equation 2: y/3 - 100x+(3-10) Not valid, special characters (0) Enter Equation 2: y/3 = -10z+(3-10) Only x and y allowed Enter Equation 2: y = -x Intercept at (-.6666,0)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
