Question: 7. Write a C++ program to find slope of a line containing two points A(X1,Y1) and B(X2, Y2) Find the equation of the line. Display
7. Write a C++ program to find slope of a line containing two points A(X1,Y1) and B(X2, Y2) Find the equation of the line. Display the equation Slope M (Y2 Y1) / (X2- X1) Equation of the line Y (slopeX)(Y1- slope X1) 9. Write a C++ program to read coordinate of two points on a line. Find the equation of the ine. Hint: 1. Find slope of the line using the formula given in problem 7. 2. Find equation of the line using the formula given: The slope formula is Slope M (Y- Y1) /X-X1), which can be written as Equation of the line OY (slope X) (Y1 slope X1) Display output in form of Y M *X B, where M slope and B (slope X1)Y1 13. Write a C++ program to read an integer number and store it in a variable called Num. Use exp (Num) function of math library. Display the output which will be (e 2.71828) to the power of Num
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
