In Java, write a class Grade with following member variables and method: int midtermExam, int finalE

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Order a Similar Paper HERE Order a Different Paper HERE

In Java, write a class Grade with following member variables and method:

int midtermExam, int finalExam: represent the scores of midterm and final exams respectively. The maximum score for each exam is 100.

double getOverallScore(): returns the overall score calculated as follows: 40% midterm and 60% final.

Write another class Grade180 that is a subclass of Grade and has the following member variables and method:

int midtermExam, int finalExam: inherited from Grade super class.

int hw1, int hw2, int project1, int project2 : represent the scores of homeworks, projects respectively. The maximum score for each homework and project is 100.

double getOverallScore(): overrides the method in Grade class and returns the overall score calculated as follows: 20% homeworks (each of equal weight), 30% projects (each of equal weight), 20% midterm and 30% final.

Note: data for member variables should be passed as arguments to their respective constructors and initialized in them.

You may use your main method for testing, but it will not be tested by webcat.