Question: 1.Use Registration.zip from the previous exercise. Rename the Course class to Unit as it will be used to represent a unit at Murdoch.Modify the class
1.Use Registration.zip from the previous exercise. Rename the Course class to Unit as it will be used to represent a unit at Murdoch.Modify the class so that it has unit name, unit id and credits. Section name is not used. The output operators use the new attributes to display. Provide appropriate set and get methods for the class.
Create a data file with unit information relevant to Murdoch units. Modify the main program so that the new data file is used with the correct unit information. Test your program to make sure it works as before.
2.Create a new class call Result. Result will contain unit and the marks (one floating point number) obtained for that unit. Provide appropriate set and get methods for the class. Think about how the class will be used. The registration class will be modified to have a list of Results instead of a list of Courses.
Modify the data file to cater for marks. The output operator for Result should output the unit information and the marks. The output for registration in the output data file will contain the Student ID, Semester, unit information and marks for each unit. The output should be in a similar format as the output in the previous exercise except it will have more relevant information. A sample run is given below.
Sample Run:
Student ID: 12345678
Semester:1
Unit ID: ICT283
Unit Name: Data_Structures_And_Abstractions
Credits: 3
Marks: 90
Unit ID: ICT289
Unit Name: Computer_Graphics
Credits: 3
Marks: 97
Number of Units = 2
Total Credits = 6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
