Home of real teaching & learning
  • Full support for teachers
  • Focus on critical thinking
  • Engaging classroom activities
  • Integrated student eBook
  • Assessed tasks / qBank
  • Practice exam questions

The InThinking Guarantee: Our sites are written by expert practitioners and not by AI

See our AI policy

Disclaimer: InThinking subject sites are neither endorsed by nor connected with the International Baccalaureate Organisation.

Don't miss out, find out!

B 2.2.2 Worksheet Java Answers

Answer KeySection 1: Arraysint[] scores = {85, 92, 78, 95, 88};System.out.println(scores[2]);scores[0] = 100; System.out.println(Arrays.toString(scores));for (int score : scores) { System.out.println(score); }int sum = 0; for (int score : scores) { sum += score; } System.out.println(sum);int sum = 0; for (int score : scores) { sum += score; } double average = (double) sum / scores.length;...

Help