Question: Greate a class to hold the information on a course attemot This dass has the following ficids: - tiple - section - dept - semester
Greate a class to hold the information on a course attemot This dass has the following ficids: - tiple - section - dept - semester - evnodstade. - credite Gredits is an int, the pent of the fielda are ftrings The mathods for the Cocurte clans are - initial zing constructor. The constructor whll initial ze every field using the values passed as pomit: - tostring the tostring mathod will return a string that contains all the fields, formatted nicety? - equal5. The equals method will compare the code, section, and semester. If all are equal it will retum true, otherwise it will retum folse. - earnedGrader the eemedGrade method will return the eamedorade feld - creditis. The gredits method will retum the credits field. After you complefe you Course dass use Coursetest, java, to make sure that your Course ciass works correctly. Chindk the output from Courre tast to verify that your Course daes is working correctly before you proceed to Part 2 . of the lab
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
