Write a Java program that will take the GPA of consecutive 3 semesters and print the average
GPA maintaining the following conditions: [5 marks]
a) The method GPA_S1() will take the value of gpa_1 under the class Sem1.
b) The method GPA_S2() will take the value of gpa_2 under the class Sem2 (Sem2 is
a derived class of Sem1).
c) The method GPA_S3() will take the value of gpa_3 under the class Sem3 (Sem3 is
a derived class of Sem2).
d) The method SGPA() will calculate the avg_gpa under the class Sem3.
e) Create an object id in the main class Test for the class Sem3 and call all the methods
using this object to print the avg_gpa.
Answers
Answered by
2
Answer:
oh my god so long question
Similar questions
Math,
6 days ago
Physics,
6 days ago
Social Sciences,
6 days ago
English,
13 days ago
World Languages,
13 days ago
Physics,
8 months ago
Chemistry,
8 months ago
Geography,
8 months ago