Question: (2) Exam Class Hierarchy Implement a java class hierarchy that represents at least three different types of exams: quizes, midterms, and finals. The base class

(2) Exam Class Hierarchy Implement a java class hierarchy that represents at least three different types of exams: quizes, midterms, and finals. The base class called Exam must have three abstract methods called getPoints(), setPoints(), and getNormalizedScore(). In addition to that, each derived class must have a constructor which takes as parameters the minimum number of points for this exam (e.g. 0), the maximum number of points for the exam (e.g., 100), and the weight of this exam (e.g., 20%). All the fields must to have Private access modifier. Create setter and getter functions for each field. Create function which prints all fields. In other words, you must write 5 java classes: Exam.java, Quiz.java, Midterm.java, Final.java, ExamDemo.java (the driver class). The driver class must instantiate objects of each exam type and demonstrate their functionality (i.e., their ability to calculate normalized scores).

code in java and not plagiarism please!!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!