Question: i need help with this java code i wrote this i need help to pass all the junit tests below do not use arrays int


int term = ft; result += ""; result to has average + ((double) sum, n); /* Your implementation ends hele. */ return result; Actual Expected 1 sum of KEUZELOVA S70SUN OTR 110,13,146 has javerage 2015 @Test public void test_getIntermediatestats_01() { String result = Utilities.getIntermediatestats(7, 3, 0); assertEquals("{}", result); } @Test public void test_getIntermediateStats_82() { String result = Utilities.getIntermediatestats(7, 3, 1); String expected = "{[sum of : 7 ; avg of : 7.00]}"; assertEquals(expected, result); } @Test public void test_getIntermediateStats_03() { String result = Utilities.getIntermediateStats(7, 3, 2); String expected = "{"; expected += "[sum of : 7; avg of : 7.00]" + ","; expected += "[sum of : 17; avg of : 8.500"; expected += "}"; assertEquals(expected , result); } @Test I public void test_getIntermediateStats_84() { String result = Utilities.getIntermediatestats(7, 3, 3); String expected = "{"; expected += "[sum of : 7; avg of : 7.00]" + ","; expected += "[sum of : 17 ; avg of : 8.50]" + ". expected + [sum of : 10.00) expected += "}"; assertEquals(expected, result); } @Test public void test_getIntermediatestats_05() { String result = Utilities.getIntermediateStats(7, 3, 4); String expected = ""; expected += "sum of : 7, avg of : 7.001" + "."; expected += "sum of : 8:501" expected += "(sum of ; 30; avg of : 46 avg of
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
