1. Engineering
  2. Computer Science
  3. plz help me with c and d show work plz...

Question: plz help me with c and d show work plz...

Question details

AP Com Unit 3: Arrays and Lists arg be the array (3, 1,-2,-5,3,-1). what array will the program return? You may but you must show your solution worked out on (and should) use Java to check your answer, paper for any credit! ALL (d) Briefly describe what the program does. How does the mystery array that is returned relate to the input array arg? i/s

Unit 3: Arruys and Lists AP Computer Science A i. Consider the followi ng code segment, where arg is a one-dimensional array int n 0 for (int i-1; i< arg, length; …) it (argtilo) / POINT A/ int l nystery nev int (nl: int j 0; int i 0; Cndition hue watl while n) t arg) oons cherks whencher elements enahtr e s ve is ii len than mystery j] i and n in cruse 3 time (a) Let arg be the array (3,1,-2,-5,3,-1). What will be the value of n at the location marked POINT B return mystery will te as POINT A? 4t the paint An Shono work (b) Let arg be the array (3,1,-2,-5,3,-1). What will be the values of i and j at the location marked as POINT B? 2 Shons work 1:3 ง and I

plz help me with c and d. Show work plz

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution