数学方程无法正常运行
我花了两天时间研究数学方程。整个过程应该从司机那里获取信息并返回最终平均值。但是,由于某种原因,它无法正确处理。任何想法将不胜感激。
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;
}
I have been working on a math equation for 2 days. The whole process is supposed to take the information from a driver and the return the final average. However, for some reason it is not processing correctly. Any ideas would be much appreciated.
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;
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我很确定你指的是测验成绩 0.05,而不是 0.5。现在,您为它们分别赋予 50% 的权重。
I'm pretty sure you mean 0.05, not 0.5, for the quiz grades. Right now, you're giving them a weight of 50% each.