Question: SOLVE THIS QUESTION USING C++. ASAP PLEASE Double any element's value that is less than minVal. Ex: If minVal 10, then dataPoints (2, 12,9, 20
SOLVE THIS QUESTION USING C++. ASAP PLEASE

Double any element's value that is less than minVal. Ex: If minVal 10, then dataPoints (2, 12,9, 20 becomes (4, 12,18,20) 4 int mainO 5 const int NUM-POINTS = 4 1 test passec 6 int dataPoints [NUM POINTS]; int minval = 0; int i =0; 8 All tests passed 10 dataPoints[0]=2 11 dataPoints[1] 12; 12 dataPoints[2]9 13 dataPoints[3] 20; 14 15 minVal 10; 16 17/* Your solution goes here 18 19 for (i = 0; 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
