请问那些大学的分数是怎样给分的?是评分数的还是给优的?有什么科目

请问那些大学的分数是怎样给分的?是评分数的还是给优的?有什么科目,第1张

大学大部分科目是考试给分,60分及格。评优的有:优、良、中等、及格、不及格五个等级。没及格的话,需要补考;补考还未及格的,必须重修再考试;重修后考试还没有通过的,那只有等到大四清考了。 语文要看你的专业

class CStudent { int nNumber[5]; char name[5][20]; int nChinese[5]; int nMath[5]; int nEnglish[5]; int nAveChinese; int nAveMath; int nAveEnglish; int nSumChinese; int nSumMath; int nSumEnglish; public: CStudent(char name1[][20]) { for (int i = 0; i < 5; i++) { nNumber[i] = i + 1; strcpy(name[i], name1[i]); nChinese[i] = rand()%90 + 60; nMath[i] = rand()%90 + 60; nEnglish[i] = rand()%90 + 60; } nAveChinese = 0; nAveMath = 0; nAveEnglish = 0; nSumChinese = 0; nSumMath = 0; nSumEnglish = 0; } void PrintAll(); void PrintAveChinese(); void PrintAveMath(); void PrintAveEnglish(); friend void Print(CStudent student); }; void CStudent::PrintAll() { cout<<"学号\t"<<"姓名\t"<<"语文\t"<<"数学\t"<<"英语"<<endl; for (int i = 0; i < 5; i++) { cout<<nNumber[i]<<"\t"<<name[i]<<"\t"<<nChinese[i]<<"\t"<<nMath[i]<<"\t"<<nEnglish[i]<<endl; } } void Print(CStudent student) { for (int i = 0; i < 5; i++) { cout<<studentnNumber[i]<<"\t"<<studentname[i]<<"\t"; if (studentnChinese[i] >= 140) cout<<"优\t"; else if (studentnChinese[i] < 140 && studentnChinese[i] >= 120) cout<<"良\t"; else if (studentnChinese[i] < 120 && studentnChinese[i] >= 100) cout<<"中\t"; else if (studentnChinese[i] < 100 && studentnChinese[i] >= 90) cout<<"及格\t"; else cout<<"不及格\t"; if (studentnMath[i] >= 140) cout<<"优\t"; else if (studentnMath[i] < 140 && studentnMath[i] >= 120) cout<<"良\t"; else if (studentnMath[i] < 120 && studentnMath[i] >= 100) cout<<"中\t"; else if (studentnMath[i] < 100 && studentnMath[i] >= 90) cout<<"及格\t"; else cout<<"不及格\t"; if (studentnEnglish[i] >= 140) cout<<"优\t"; else if (studentnEnglish[i] < 140 && studentnEnglish[i] >= 120) cout<<"良\t"; else if (studentnEnglish[i] < 120 && studentnEnglish[i] >= 100) cout<<"中\t"; else if (studentnEnglish[i] < 100 && studentnEnglish[i] >= 90) cout<<"及格\t"; else cout<<"不及格\t"; cout<<endl; } } void CStudent::PrintAveChinese() { for (int i = 0; i < 5; i++) nSumChinese += nChinese[i]; nAveChinese = nSumChinese/5; cout<<"语文平均成绩:"<<nAveChinese<<endl; } void CStudent::PrintAveMath() { for (int i = 0; i < 5; i++) nSumMath += nMath[i]; nAveMath = nSumMath/5; cout<<"数学平均成绩:"<<nAveMath<<endl; } void CStudent::PrintAveEnglish() { for (int i = 0; i < 5; i++) nSumEnglish += nEnglish[i]; nAveEnglish = nSumEnglish/5; cout<<"英语平均成绩:"<<nAveEnglish<<endl; } int _tmain(int argc, _TCHAR argv[]) { srand(time(NULL)); char name1[5][20] = {"SZW", "SDL", "LHW", "LH", "LJ"}; CStudent student(name1); //student = new CStudent; studentPrintAll(); studentPrintAveChinese(); studentPrintAveMath(); studentPrintAveEnglish(); Print(student); }
记得采纳啊


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/13167661.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-06-15
下一篇 2023-06-15

发表评论

登录后才能评论

评论列表(0条)

保存