Question: y = mx + b; m: slope, b:y - interceptFor example, m = 1 , b = 1 , the equation of the line is:

y=mx+b; m: slope, b:y-interceptFor example, m=1, b=1, the equation of the line is: y = x+1.Write a program in which the user is prompted to enter the slope and the y-intercept in the main()The main() passes the two parameters to my_equation() which prints the equation of the line.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!