Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started