Design a console application that will print the final result obtained by a student with the weighting of each module. Make use of an abstract class named Student that contains variables to store the student number, test result, assignment result and exam. Create a constructor that accepts the student number, test result, assignment result and the exam result as parameters and create get methods for the variables. The Student class must implement an iReport interface that contains the following: public interface iReport { public void print_report(); } Create a subclass called Student_Report that extends the Student class. The Student_Report class must contain a constructor to accept the student number, test, assignment and exam results as parameters. Write code for the print_report method which calculates each assessment weighting as follows:
Comments
Leave a comment