永恆交界處

Java EX3

本次作業的目的是要練習物件導向、陣列(清單)、Instance與靜態。
這次是官方提供一個很難看懂的Tester(下收)

作業要求利用物件導向的原理,自己寫一個Student的class來接收與丟回資料。
但也是拿著自己一知半解的物件導向理解,一直去煩資管系的同學XD,
最後還是完成了我的目標。

Requirements:
• Implement a class Student. For the purpose of this exercise, a student has an ID, midterm score, preQuiz score, LabQuiz score, HW1 score, total score, and gpa.
• You are not required to implement a tester class, though it is strongly advised that you do so. Your classes will be executed against the TA’s tester class. It is essential that your classes correctly implement the public interfaces, or they’ll break the tester’s code! In that event, your maximum grade is 60.
• Supply an appropriate constructor.
• Supply appropriate methods getID(), getTotalScore(), getAverageScore(), numberOfScore(), standerDev(), gradeDistribution(), gpa(), etc.
• The grade point averages (gpa) calculation use the grading scale as follows:
98 <= A+ 88 <= B+ < 90 78 <= C+ < 80 60 <= D < 70
92 <= A < 98 82 <= B < 88 72 <= C < 78 F < 60
90 <= A- < 92 80 <= B- < 82 70 <= C- < 72

作業要求連結


Java EX3 Tester code


也因為我覺得我這次寫註解比原本清楚,就不用解釋了,大家自己看吧。

Java EX3 code

Facebook 粉絲專頁,賞個讚吧。<(_ _)>