Question: Declare double variables x1,y1,x2, and y2, and read each variable from input in that order. Find the slope between point (x1, y1) and point (x2,y2)

 Declare double variables x1,y1,x2, and y2, and read each variable from
input in that order. Find the slope between point (x1, y1) and

Declare double variables x1,y1,x2, and y2, and read each variable from input in that order. Find the slope between point (x1, y1) and point (x2,y2) and assign the result to siopevalue The calculation is: slope =x2x1y2y1 Ex if the input is 1.54.53.54.0, the output is? 0.25 Note: Assume that 1 and 2. will not be the same: X Failed to compile SlopeCalculator. java:10: error: cannot find symbol x1 = sc.nextDouble(); symbol: variable sc location: class SlopeCalculator SlopeCalculator.java:12: error: cannot find symbol y1 = sc.nextDouble(); symbol: variable sc location: class slopeCalculator Slopecalculator.java:14: error: cannot find symbol x2 = sc.nextDouble(); symbol: variable sc location: class SlopeCalculator SlopeCalculator.java:16: error: cannot find symbol y2 = sc.nextDouble()

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!