Question: Help me do all the to do comments on bluej. Add code so the statistics come out right. Terminal WinCHS211 Array Testros-C5211 Army ST ---

Help me do all the "to do" comments on bluej. Add code so the statistics come out right.
 Help me do all the "to do" comments on bluej. Add
code so the statistics come out right. Terminal WinCHS211 Array Testros-C5211 Army
ST --- Test 1 Dato: 11. 2. 3. 41 Stat: Sun Value:
15 1 Max.in 2 Average 3.00 Stev 4. --- Test 2 -
Data: 110, 50, 30, 40. 201 Stat Son Sum Value 1 Maxin

Terminal WinCHS211 Array Testros-C5211 Army ST --- Test 1 Dato: 11. 2. 3. 41 Stat: Sun Value: 15 1 Max.in 2 Average 3.00 Stev 4. --- Test 2 - Data: 110, 50, 30, 40. 201 Stat Son Sum Value 1 Maxin 2 Average 3.00 Stev 4.000 C31 AW Send a formated report to stdout Oparan data array of integers to be analyzed public void showStats(int 1 data) counter: Systen out print Test ---- Counter): System.out.printf("Data: tsinArrays.toString(data)): Statistical Analyzer sa new StatisticalAnalyzer(data): System.out.printf(Srat: 1108 1108 1108 110 110n Sun.Sun, Maxin, Average Staber): System.out.printf"Value 1100 118d 100 %10.27 178.3 sa.recursiveSun(o), s. iterativeSun). 10.getRange(). s.getAverage) s.getStev(): Demonstrate Statisticallyzer on two sample data sets . public static void main() Testprog tp new TestProg: int Ildatal - (1.2.3.4): tp.showStats (datal) were are 10.3.2.5.13 int Il data2 = (10.50.30, 40,20) tp.showbtats(data): 0,20:15, Open this file with Blue). Run the program. Note how all the statistics are wrong pen the source code. Note all the TO DO?comments. Add code so the statistics come out right When done. Use Bluel to create a JAR file with source. Rename the ile to Your Name zip and upload it to BS. Blue: Terminal Window - CIS211 Array Test Prog - CIS211.A Sa TX Test 1 ---- Data: [1. 2. 3. 41 Stat: rsun Value: 18 Copy SE Ft Max-Min 2 Average 3.ee Stdey 4. De Corple O Import java.util.. 1 -- Test 2 - Data: (10, 50, 30, 40, 20) Stat Sum 1 Sun Value e 1 Max-Min 2 Average 3.00 StdDev 4.ee This program tests the Statistical Analyzer classs fauthor Jason Miller Oversion 1.0 . public class TestProg int counter public Test Prog counter CS211 ARTY Nils Com Star 21 Send a formated report to stdout. Oparan data array of integers to be analyzed . public void showStats(int i) data) counter++ System.out.printf("---- Test din.counter): System.out.printf(Data: in". Arrays.toString(data)): Statistical Analyzer sa new StatisticalAnalyzer (data) System.out.printf("Stat: 1105 105 106 1108 110 Sun.Sum", Max-Man, "Average". "StaDev): System.out.printf("Value: 118d Ted 110 110.27 110.3finin, sa recursiveSum(o). sa. iterativeSun() sa.getRange(). sa.getAverage). sa.getStevo); Open this file with Blue). Run the program. Note how all the statistics are wrong. Open the source code. Note all the "TO DO"comments. Add code so the statistics come out right. When done, use Blue) to create a JAR file with source. Rename the file to Your Name.zip and upload it to BS. Blu Terminal WindowC8211 Array StatisticalAnalyzer-CISZ11 Array -- Test 1 - Data: 11.23, 4 Sun Value stat 15m 1 SU Max Min 2 Average 3.00 Stev 4.88 --- Test 2 ---- Data: 110, 50, 30, 40. 201 Stat: Sum Value 1 TO 10 nove this comment WATOAdd avaboc throughout the last public class staticalAnalyzer Int Il data: publie Statistical Analyzer (int ll data) this data-data: Sun Average Maxin 2 EndDev 4.ee Blue 11 AW public int recurs veum (int 1) return / TO00 this You Tersion W Antally Recurength -D 1 public int IterativeSun) return 1. // TODO fix this 17 You Station public int getRange return 2 // TODO ft the V/ Range in Vitratto Variables that trachanda 21 Open this file with Blue). Run the program. Note how all the statistics are wrong Open the source code. Note all the "TO DO"comments. Add code so the statistics come out right When done use Blue) to create a JAR file with source. Rename the Hile to Your Name zip and upload it to BS public double getAverage return 3.0 TO DO: the Vendita tontut Integer division Chascomplexion Blue). Termin Window C521 AT Statistical Analyzer C5211 Test 1 - Data: 11. 2. 3. 41 Stat: Sum Value 0 G Sun 1 Mar-MEN 2 Average 3.00 Stev 4.000 initially Recurso till data length - Test 2 Data: 110, 50, 30, 40, 201 Star Sun 15 Value 1 Max-Min Average 3.00 Stev 4.000 public int iterativesum() return 1; TO DO: this You must use iteration 5311. Are publie int getRange() return 2: Of this Hangen Uolteration and variables that track and poble double getAverage return 3.0 TO DO this Ut et sunt and division V on tunteer dit publto double petite return 4.0 Extra Credit Cote the standardov deviation average) duvar (deviation) Average) Moto21nath warto 1 Open this file with Blue). Run the program. Note how all the statistics are wrong Open the source code Note all the TO DO"comments. Add code so the statistics come out right. When done, use Blue to create a JAR file with source. Rename the file to Your Name.zip and upload it to BS. Content Mini Terminal Window-CS 1. Array Statistical analyze CS211. Array Test 1 ---- Data: 11. 2. 3. 41 Stat: Sum Value: Sun 1 Maxin 2 Average 3.90 Stev 4.800 - Test 2 ---- Data: 110, 50, 30, 40201 Stat Sun Sum Value 1 Com an Cry TO DO: Remove the comment A TO DO Add JavaDoce throughout the class public class statistical Analyzer int data: public statistical Analyzer (int Il data) this.data-data: Marin 2 Average 3.00 Stev 4.900 11. Array News public int recursiveSun (int 1) return 0; X TO : the 1/ You must be recurso 1 Assuntally Recurso till datength Care public int iterative) return 1:1 TO DO the 17 You must storation public int getRange() return 2: TODOX this 1 Range W Use iteration and varsbles that track it and tax > 1 Open this file with BlueJ. Run the program. Note how all the statistics are wrong. Open the source code. Note all the TO DO"comments. Add code so the statistics Come out right. When done, use Blue to create a JAR file with source. Rename the File to Your Name.zip and upload it to BS public double getAverage 0 return 3.0; TO DO Yound and so Dont use integer division Chats compiled rosteron

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!