Question: Write, compile, and execute a C++ program that uses: 1a. A function that passes two points, P1( 1, 5) and P2(5, 10)to compute the point-slope

Write, compile, and execute a C++ program that uses:

1a. A function that passes two points, P1( 1, 5) and P2(5, 10)to compute the point-slope formula,y =mx +band displays the answer.

1b. Repeats 1a and uses a function with void input parameters. (hint: Use CIN)

2. Repeats 1b and adds a new input obj, where obj is a line or a circle. If obj is a line, compute y = mx + b, else compute the area of the circle, AC= 2r where = 3.141526

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 Databases Questions!