Question: EEGR 415: Java Applications for Engineers Assignment 1 Write a program that asks the user to enter the x,y coordinates of two points and store
EEGR 415: Java Applications for Engineers Assignment 1 Write a program that asks the user to enter the x,y coordinates of two points and store the values in 4 string variables. Convert string values of points into doubles, and perform the calculation to determine the distance between the points. Use standard output to display the following: The distance between ({x1},{y1}) and ({x2},{y2}) is : 3.605551275463989 Expected Output (i.e. test case): Enter point 1 coordinate: 1.0 Enter point 1 y coordinate: 5.0 Enter point 2 coordinate: 4.0 Enter point 2 y coordinate: 7.0 The distance between (1,0,5,0) and (4,0,7,0) is : 3.605551275463989 Tip: To perform the square root, use this method Math.sqrt0 To raise a variable a to a power n, use this method Math.pow(a,n) You must include a video that shows oral defense of code (see instructions on Canvas)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
