Answer:
Following are the declaration to this question:
double examBonus[] = new double[170]; // declaring the double array examBonus that holds 170 size value
int x1;//defining an integer variable x1
for (x1=0;x1<170;x1++)//defining a for loop that initialize value in array
{
examBonus[x1] = 5.5;//assign value in array
}
Step-by-step explanation:
In the above-given java program code, a double type array "examBonus" is declared, that holds a given size value, which is already defined in the question.
In the next step, an integer variable "x1" is defined which is used in the for loop that starts from 0 and ends when its value less than 170, and it assigns the value "5.5" in the above-given array.