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
Get step-by-step solutions from verified subject matter experts
