需要帮助成绩计算器代码。 [英] Need help with Grade calculator code.

查看:62
本文介绍了需要帮助成绩计算器代码。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是初学者,需要帮助我的成绩计算器编码。我知道大多数例子都显示了一定数量的成绩的平均成绩。我想要学习的是,如果每个学生的成绩数量不同,我该怎么写呢。我无法弄清楚如何放入一个功能,用户可以随时停止为学生提供成绩。我也试图把它放到用户输入A,B,C,D,F的等级,并让我的程序自动将其转换为A = 4,B = 3,C = 2,D = 1,F = 0,然后平均输入的所有成绩。我正在努力学习这些东西,而不只是寻找讲义,我只是在哪里找到帮助...感谢!感谢!

I am a beginner and needing help with my coding for my grade calculator. I know that most examples show grade averages for a set number of grades. The thing that I am trying to learn is how would I write it if the number of grades was different for each student. I am having trouble being able to figure out how to put in a function where the user can stop putting in grades for the student whenever they want. I also am trying to put it to where the user enters A,B,C,D,F for the grade and have my program automatically convert it to A=4,B=3, C=2, D=1, F=0, then average up all the grades entered. I am trying to learn this stuff not just looking for a handout, I am just stumped as to where to find help.. THANKS!

展开 | 选择 | Wrap | 行号

推荐答案

https:// wikis .engrade.com / help / grade_calculation


这是来自engrade,稍微有用。如果你是一名教师,或者可以在雕刻上做一些帐户,你可以使用这个评分系统。这是我们所有教师使用的,并使用平均来计算成绩。请告诉我为什么你需要A代表1,B代表2代表。具体原因是什么?因为有更简单的方法来计算成绩。
https://wikis.engrade.com/help/grade_calculation

This is from engrade, and is slightly helpful. If you are a teacher, or can someway make an account on engrade, you can use this grading system.This is what all our teachers use, and uses averaging to calculate grades. Please tell me why you need 1 for A, 2 for B. Is it for a specific reason? Because there are way easier ways to calculate grades.


我重读了你的帖子并意识到你不想要平均。你是什​​么意思停止为学生投入成绩?而且,为什么你需要1a b2等?
I reread what your post and realized you do not want averaging. What do you mean by "stop" putting in grades for a student? And still, why do you need 1a b2 etc?


停止进入成绩,我的意思是说你有5年级的学生A,7年级的学生B和学生C 10年级。你怎么能告诉程序要求输入不同年级成绩的成绩。大多数示例都有一组3级输入,因此很容易。但在我的例子中,不知道每个学生有多少年级。这个等级也需要在大学评分中分解,即。 A = 4.0,B = 3.0,C = 2.0,D = 1.0,F = 0.0这是我班级的作业以及教师如何进行评分。
by the stop putting in grades, I meant say you have student A with 5 grades, student B with 7 grades, and student C with 10 grades. How could you tell the program to keep asking to input grades in for a different range of grade scores. Most examples have a set number of 3 grade inputs so it makes it easy. But in my example it is unknown how many grades each student has. Also the grade needs to be broken down in College Scoring ie. A=4.0, B=3.0, C=2.0, D=1.0, F=0.0 This is the assignment for my class and how the instructor wants the grading.


这篇关于需要帮助成绩计算器代码。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆