再希望大大看一下
改用大大的写法
我现在都用阵列来写
功能要有
1.Show Exercise No., Class, Name, and ID
2.Enter the total students, student’s name, id and 3 scores
3.Calculate the average of the 3 scores
4.Show all the student’s records
5.Show the highest, lowest score, and fail students of each course.
目前第1-4功能完能,但是第5功能,不及格功能有问题
-------------------------------------------------------------------------------------------------------------------
要显示成像这样
Exercise 3
Class : X子XA Name : XXX ID :XXXXXXXX
How many students in class : 5
Name of student 1 : Eric
ID of student 1 : D9833007
Score 1 of student 1 : 89
Score 2 of student 1 : 56
Score 3 of student 1 : 74
Name of student 2 : Mary
ID of student 2 : D9833004
Score 1 of student 2 : 80
Score 2 of student 2 : 66
Score 3 of student 2 : 44
…………
Press any key to print class record
Name ID Score1 Score2 Score3 Average
Eric D9833007 89 56 74 73
Mary D9833004 80 66 44 63
…………
…………
Course 1 :
Highest Score:
Name: Tina ID: D9833001 Score: 90
Lowest Score:
Name: Linda ID: D9833031 Score: 34
Fail List:
Name: Terry ID: D9833031 Score: 34
………..
Course 3 :
Highest Score:
Name: Jack ID: D9833004 Score: 92
Lowest Score:
Name: Steven ID: D9833044 Score: 32
Fail List:
All Pass!
------------------------------------------------------------------------------- ..
访客只能看到部份内容,免费 加入会员 或由脸书 Google 可以看到全部内容