Question: solve it in netbeans Create a single static method named display MapData that accepts a 2D double array (stormtrooper locations) and a string (your name)...
Create a single static method named display MapData that accepts a 2D double array (stormtrooper locations) and a string (your name)... displays a table of Euclidean distances between each stormtrooper as shown below. tart Page x us Output - Locklear PExami (run) x Locklear PExam 1.java x ST-2 STORMTROOPER DISTANCE DATA ST-3 ST-4 ST-5 ST-6 ST-2 ST- ST-9 ST-10 TOTAL DISTANCE ST-1 ST- 10 2 ST-2 2 0 29.70 3 1 .16 .41 4.24 3.16 $ 4.12 3 .1 5.1 4.47 2.05 4.47 4.24 3.16 .03 3.6 2.243 2.24 3.6 27.56 25.74 You may create as many 'helper methods' that you want to assist you in displaying the data. All 'helper methods' must be utilized inside the display MapData method. 1.41 4.12 51-6 57- ST- 2.6 1.12 7 S 4 3.04 2.24 S .47 3.9 2.24 2.24 3 1.47 4.24 4.03 2.24 2.03 3.16 3.5 2.24 .61 2.240 1.41 3.64 2.6 2.83 3 2 4.24 4.12 3 2.24 1.0 30.97 26.65 25.6 1.120 .24 2 2.06 1.41 ST-9 0 1. 0 .06 ST-10 3 1.41 0 24.68 REPORT DATA CREATED BY HC Locklear BUILD SUCCESSFUL (total si seconds) Call the method in the main method of your class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
