1. Problem: We need to create an algorithm (pseudocode) to input a 3x3 matrix of student scores and calculate the average score per student (per row).
2. Formula: The average per student is calculated by summing all scores in a row and dividing by the number of subjects.
$$\text{Average}_i = \frac{\sum_{j=1}^3 \text{Nilai}[i][j]}{3}$$
3. Important rules:
- The matrix has 3 rows (students) and 3 columns (subjects).
- Input values must be stored correctly in the matrix.
- Average is calculated per row.
4. Pseudocode:
```
Declare Nilai as 3x3 matrix
For i from 0 to 2 do
For j from 0 to 2 do
Input Nilai[i][j]
EndFor
EndFor
For i from 0 to 2 do
sum = 0
For j from 0 to 2 do
sum = sum + Nilai[i][j]
EndFor
average = sum / 3
Print "Rata-rata Mahasiswa ", i+1, ": ", average
EndFor
```
5. Explanation:
- First, we input the scores for each student and subject.
- Then, for each student (row), we sum their scores and divide by 3 to get the average.
- Finally, we print the average score for each student.
This algorithm ensures all data is input and averages are correctly computed and displayed.
Average Student 067050
Step-by-step solutions with LaTeX - clean, fast, and student-friendly.