Question: 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
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 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 a Report interface that contains the following:
public interface Report {
public void print_report();
}
Create 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.
Finally write useStudent class to instantiate the Student_Report class. Sample output is shown below and you may hard code the same values to test your application.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
