修改成绩分析输出格式

main 0.0.2p
lensfrex 3 years ago
parent 222d88d5ad
commit 5735471fdf
Signed by: lensfrex
GPG Key ID: 0F69A0A2FBEE98A0
  1. 10
      src/main/java/me/lensfrex/manager/data/manager/StudentManager.java

@ -361,11 +361,11 @@ public class StudentManager {
StringBuilder stringBuilder = new StringBuilder().append(subject).append(":\n\t"); StringBuilder stringBuilder = new StringBuilder().append(subject).append(":\n\t");
stringBuilder stringBuilder
.append(String.format("Level A: %d/%.2f", scoreLevelInfo[SCORE_LEVEL_A], (float) scoreLevelInfo[SCORE_LEVEL_A] / studentAmount)).append(" | ") .append(String.format("Level A: %d/%.2f%% | ", scoreLevelInfo[SCORE_LEVEL_A], (float) scoreLevelInfo[SCORE_LEVEL_A]*100 / studentAmount))
.append(String.format("Level B: %d/%.2f", scoreLevelInfo[SCORE_LEVEL_B], (float) scoreLevelInfo[SCORE_LEVEL_B] / studentAmount)).append(" | ") .append(String.format("Level B: %d/%.2f%% | ", scoreLevelInfo[SCORE_LEVEL_B], (float) scoreLevelInfo[SCORE_LEVEL_B]*100 / studentAmount))
.append(String.format("Level C: %d/%.2f", scoreLevelInfo[SCORE_LEVEL_C], (float) scoreLevelInfo[SCORE_LEVEL_C] / studentAmount)).append(" | ") .append(String.format("Level C: %d/%.2f%% | ", scoreLevelInfo[SCORE_LEVEL_C], (float) scoreLevelInfo[SCORE_LEVEL_C]*100 / studentAmount))
.append(String.format("Level D: %d/%.2f", scoreLevelInfo[SCORE_LEVEL_D], (float) scoreLevelInfo[SCORE_LEVEL_D] / studentAmount)).append(" | ") .append(String.format("Level D: %d/%.2f%% | ", scoreLevelInfo[SCORE_LEVEL_D], (float) scoreLevelInfo[SCORE_LEVEL_D]*100 / studentAmount))
.append(String.format("Level E: %d/%.2f", scoreLevelInfo[SCORE_LEVEL_E], (float) scoreLevelInfo[SCORE_LEVEL_E] / studentAmount)); .append(String.format("Level E: %d/%.2f%%", scoreLevelInfo[SCORE_LEVEL_E], (float) scoreLevelInfo[SCORE_LEVEL_E]*100 / studentAmount));
records.add(stringBuilder.toString()); records.add(stringBuilder.toString());
} }

Loading…
Cancel
Save