我一直在研究数学方程 2 天。整个过程应该从驾驶员那里获取信息并返回最终平均值。但是,由于某种原因,它没有正确处理。任何想法将不胜感激。
public double Overall() {
double finalProjectGrade = ((projectGrade1 * 0.1) + (projectGrade2 * 0.1) + (projectGrade3 * 0.1) + (projectGrade4 * 0.1));
double finalQuizGrade = ((quizGrade1 * 0.5) + (quizGrade2 * 0.5));
double finalTest = (finalExam * 0.25);
double finalParticipationGrade = (participationGrades * 0.25);
double Overall = ( finalProjectGrade + finalQuizGrade + finalTest + finalParticipationGrade);
return Overall;
}