Answer:
Following are the code to this question:
void increase(double scores[][]) //defining method increase
{
//defining loop to multiply the value by 10
for(int x=0;x<scores.length;x++)
{
for(int y=0;y<scores[x].length;y++)
{
scores[x][y]=scores[x][y] * 10; //multiply value
}
}
}
increase (scores); //call method and pass the value
Explanation:
Description to this question can be described as follows:
- In the above-given code, a method increase is declared, in which we pass a double array "scores", and inside the method two for loop is defined.
- Inside the loop an integer variable "x and y" is used, which multiply by 10 in the score array.
- In the next line method is called, that accepts array value, in this method calling we can't need to receive the return value because it increases, and it does require a void return type.