Question: Demonstrate the Interface concept for the below problem. a Defined an Interface called FinalGrade, which declares a method called computeFinalGrades(). b Define another interface called


Demonstrate the Interface concept for the below problem. a Defined an Interface called "FinalGrade", which declares a method called computeFinalGrades(). b Define another interface called "LetterGrade", which declares a method called computeLetterGrade(). C Define a super class named "Course" with subject code, avg_exams, avg_Assignments as data members. d Define two subclasses as below: 1) "Advanced Java" with an additional field called "grades_in_class" 2) "Web Technology" with an additional field called "grades_Quizzes". Define the required constructors and getter methods in both classes. e Override the computeGrade() in both classes as below: 1. In Advanced Java, Fgrade= 40%* avg_exams+ 40%* avg_Assignments + 20* grades_in_class 2. In Web Technology, Fgrade= 30%* avg_exams+ 50%* avg_Assignments + 20*grades Quizzes Note: Fgrade is a local variable in the computeGrade() method. f Override the computeLetterGrade() as below a. Advanced Java: =60 && =70 && =80 && =90 && =60 && =75 && =85 && =95 &&
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
