Question: PLEASE ANSWER ASAP LIKE WILL BE PROMISELY GIVEN NEEDED IN JAVA PLEASE WRITE NEW AND FRESH CODE OTHERWISE DISLIKE WILL BE GIVEN. DON'T REUSE CODE

PLEASE ANSWER ASAP LIKE WILL BE PROMISELY GIVEN

NEEDED IN JAVA

PLEASE WRITE NEW AND FRESH CODE OTHERWISE DISLIKE WILL BE GIVEN. DON'T REUSE CODE OR PARAPHRASE CODE OTHERWISE DISLIKE WILL BE GIVEN. PLEASE WRITE YOUR OWN CODE.

PLEASE COMMENT ON THE CODE.

PLEASE ANSWER ASAP LIKE WILL BE PROMISELY GIVEN NEEDED IN JAVA PLEASE

We have to calculate the percentage of marks obtained in: two subjects (each out of 100) by student A. three subjects (each out of 100) by student B. and three subjects (each out of 100) by student C. Create an abstract class 'Marks' with an abstract method 'myPercentage'. It is inherited by three other classes 'A', 'B' and 'C' each having a method with the same name 'myPercentage'; which returns the percentage of the students. The constructor of: student A takes the marks in two subjects as its parameters And the marks in three subjects as its parameters for student B and C. Create an object for each of the three classes and print the percentage of marks for all the students. Output Example: Student A is taking 2 subjects: his percentage = 90% Student B is taking 3 subjects: his percentage = 95% Student C is taking 3 subjects: his percentage = 85%

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!