need help please | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 3

need help please

public class Problem01 { / * * Description: the average methodPosGenap will return the average value * of all the array elements that have numbers * even index (0.2,4,6, ....). * * @param array of numbers with the number of elements n, * where 100> n> 1 * * @return the average value of all the array elements * numbers that have even indexes * / public double rerataPosGenap(int[] data){ //kode program kamu diletakkan disini int sum = 0; for (int i = 0; i < 10; i++) { sum = sum + data[i]; } return 0;//0 is default value and can be change } }

12th Sep 2017, 8:22 PM
Game Baru
Game Baru - avatar
1 Answer
0
What is your doubt? Maybe you can do your own code and ask about doubts
18th Nov 2017, 7:30 AM
Daniel
Daniel - avatar