package ChongXingZuo; public class PaiBiChengJi { public static void main(String[] args) { //1.首先将作答数据、试卷数据与学生成绩存储 char[][] studentAnswer= { {'A','B','A','C','C'}, {'D','B','A','B','C'}, {'E','D','D','A','C'}, {'C','B','A','E','D'}, {'A','B','D','C','C'} }; char[] standarAnswers= {'D','B','D','C','C'}; int [] studentScores=new int[studentAnswer.length]; //2.计算分数:将每个学生的试卷作答与标准答案对比,对的累加2分 for(int i=0;i欢迎分享,转载请注明来源:内存溢出
Java:对比答案并输出成绩
赞
(0)
打赏
微信扫一扫
支付宝扫一扫
变量分配在堆还是栈?
上一篇
2022-12-17
Ghidra Java API报NoClassDefFoundError的解决方法
下一篇
2022-12-16
评论列表(0条)