Question: Write a C++ program to calculate the Slope. Slope (S)- (Y2-Y1)/(X2-X1) The user enters the values for Y1, Y2, x1, x1, and the program calculates
Write a C++ program to calculate the Slope. Slope (S)- (Y2-Y1)/(X2-X1) The user enters the values for Y1, Y2, x1, x1, and the program calculates the Slope s. Your output must show all your inputs (for Y1, Y2, x1, X1 as well as the slope. Output format: x1- X2= Y1= Y2 = Slope = Hand in the source codes, design in pseudocode and a screenshot of the output Note: Your program must be fully documented (comments). Apply formatting (setwl), set precision, fixed, show point)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
