import java.util.*;
class Person
{
protected String firstName;
protected String lastName;
protected int idNumber;
// Constructor
Person(String firstName, String lastName, int identification)
{
this.firstName = firstName;
this.lastName = lastName;
this.idNumber = identification;
}
// Print person data
public void printPerson()
{
System.out.println( "Name: " + lastName + ", " + firstName + "\nID: " + idNumber);
}
}
class Student extends Person
{
private int[] testScores;
public Student(String firstName, String lastName, int id, int scores[])
{
super(firstName,lastName,id);
// this.firstName = firstName;
// this.lastName = lastName;
// this.idNumber = id;
testScores=scores;
}
char calculate()
{
int average=0;
for(int i=0 ;i