Question: 12.2.4 1 test passed All tests passed Challenge 12.2.4: Modify an array's elements. Activity Double any element's value that is less than minVal. Ex: lf


12.2.4 1 test passed All tests passed Challenge 12.2.4: Modify an array's elements. Activity Double any element's value that is less than minVal. Ex: lf minVal 0, then dataPoints 2, 12, 9, 20 becomes (4, 12, 18, 20 1 public class StudentScores 1 2 public static void main CString CJ args) final int NUM POINTS 4; int[] dataPoints new intCNUM POINTS]; int minval 0 int i 0; dataPoints D01 2 data PointsC1] 12 dataPointsC2J 9; 100 dataPoints[3] 20 11 12 minval 10; 13 Your solution goes here 16 for Ci 0; i NUM POINTS ++i) 18 System.out.print(dataPoints[i] 19
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
