Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 2 (Marks:30) Design a console application that will print the final result obtained by a student with the weighting of each module. Make use

image text in transcribedimage text in transcribed

Question 2 (Marks:30) 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 Report 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: Assessment Weighting Test 25% Assignment 25% Exam 50% Finally write a 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. STUDENT REPORT STUDENT NUMBER: 11007 TEST WEIGHTING: 20.0 ASSIGDENT WEIGHTING: 18.75 EXAM WEIGHTING: 32.5 FINAL RESULT: 71.259 Mark Examiner Requirement iReport interface class created Abstract Student class created with: 6 10 Constructor; Variables and Methods; Input and Output Student Report class that extends Student class and contains: 8 Constructor; Print Report Method. Use Student class created to: 3 Instantiate the Student Report class. Report produced as per sample. TOTAL 3 30

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

More Books

Students also viewed these Databases questions

Question

disadvantages of using e - learning and M - learning

Answered: 1 week ago