public class Sample7_12 {

	public static void main(String[] args) {
		int[][] points = new int[4][10];

		points[0] = new int[] { 27, 53, 82, 77, 37, 61, 84, 72, 25, 91 };
		points[1] = new int[] { 54, 76, 96, 39, 18, 45, 89, 92, 68, 88 };
		points[2] = new int[] { 54, 69, 81, 57, 49, 67, 76, 81, 67, 89 };

		int[] japanesePoints = points[0];
		int[] mathPoints = points[1];
		int[] englishPoints = points[2];
		int[] sumPoints = points[3];

		for (int i = 0; i < sumPoints.length; i++) {
			sumPoints[i] = japanesePoints[i] + mathPoints[i] + englishPoints[i];
		}

		for (int i = 0; i < sumPoints.length; i++) {
			System.out.println("出席番号" + (i + 1) + "番の生徒の成績");
			System.out.println("国語 : " + japanesePoints[i]);
			System.out.println("数学 : " + mathPoints[i]);
			System.out.println("英語 : " + englishPoints[i]);
			System.out.println("合計 : " + sumPoints[i]);
			System.out.println("-----");
		}
	}
}
