Minorramidez9269 Minorramidez9269
  • 08-03-2024
  • Computers and Technology
contestada

What does the following code snippet do?
int[] scores = {80, 92, 91, 68, 88};
int sum = 0;
for (int i = 0; i < 5; i++) {
sum += scores[i];
}
System.out.println((double) sum / 5);
a. Calculates the average score
b. Finds the maximum score
c. Sorts the scores in ascending order
d. Computes the sum of scores

Respuesta :

Otras preguntas

Factor out the coefficient of the variable 2/3 j - 2/9
Evaluate. Let x = 1. 4x/(5-3) ______ 2x*5+9x Enter the answer in lowest terms.
Please help with my study guide. You will get 20 points:       (only answer if u know) ·How do continental glaciers move? ·A farmer uses weeds and stalks from h
What is the geographic origin of Christianity?
what factor is paired with 5 to give 45?
85% of what number is 10.2
The probability of having the combination of one head and one tail when flipping two coins is _____.
What is the difference between active and passive transport ?
Why is the San Francisco de Solano on the Califorana coast?
A 5.00 kilogram block slides along a horizontal,frictionless surface at 10.0 meters per second. for 4.00 seconds. The magnitude of the blocks momentum is ? A)20