Question: Answer in C + + please!! This program uses the topics discussed in Chapter 3 input / output interactivity, formatting output, and using the cmath
Answer in C please!! This program uses the topics discussed in Chapter
inputoutput interactivity, formatting output, and using
the cmath library. Write a program that asks the user to
enter the and coordinates of two points. That is
and The program should:
Find the distance, between the two points using
the Pythagorean Theorem.
Find the slope, of the line that joins the two points.
Find the midpoint of the line connecting these two points.
Find the equation of the line in standard form.
All functions are to be from the cmath library. Use setprecision with fixed
point notation. Use float or double data types. Do not use the same value for
and This will cause the compiler to divide by zero. Formulas to be used are:
Distance
Midpoint
Slope
Standard Form:
Your output should look like this:
Enter the value of :
Enter the value of :
Enter the value of :
Enter the value of :
The distance from these two points is:
The midpoint of the line joining these two points is:
The equation of the line in standard form is:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
