Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

....o Ooredoo 4G 10:05 AM 50% Done 2521nLabAssign4-L51 (1).docx Create a package

ID: 3574171 • Letter: #

Question

....o Ooredoo 4G 10:05 AM 50% Done 2521nLabAssign4-L51 (1).docx Create a package called model and a package called test. n the model package, add the following class package model; import java util ArrayList; public abstract class Person private int id; private String name; private static AmayList Person persons new AmayListo0; public Person(int id, String name) this id id; this name name; persons add(this): public int getld0 return id; public void setld(int id) this id-id; public String getName0 return name: public void setName (String name) this name name; public static AmayList Person getPersons0 return persons: public abstract String getClassName0 public String toCSVO return id name getClassName0 dyAdd a subclass called Student that has one private attribute called gpa (double). Add the setter and getter for gpa. Add a

Explanation / Answer

Please find the required program along with its output. Please see the comments against each line to understand the step.

------------------------------------------------------

OUTPUT:

1234,Ahmad Ali,Student,3.0
321,Musthafa Taha,Staff,Clerk
376,Othman Hamad,Staff,Driver
1574,Saad Hassan,Student,2.5
1288,Khalid Faraj,Student,3.9
529,Ghazi Hussein,Staff,Engineer

Total GPA : 9.4
Total students : 3
Average GPA : 3.13

Students with above average:
Name: Khalid Faraj
GPA: 3.9