再希望大大看一下
改用大大的寫法
我現在都用陣列來寫
功能要有
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 可以看到全部內容