Write a Java program to calculate /display the average height of a family and find / display the tallest height of a family.
family.txt:
5 7
5 3
4 10
4 11
6 3
7 0
5 2
6 11
5 5
7 3
6 6
7 7
You should create two classes, FamilyHeight and Height.
In the class Height, there are two instance variables, feet and
inches.
There are two constructors, one is a default case and the other
is taking user information.
There are five methods as below.
The main function is included in the class
FamilyHeight.
There are two more static methods in the class FamilyHeight as below.
public static Height getSum(ArrayList<Height> arr) Calculate the total heights of all family members.
public static Height getMax(ArrayList<Height> arr) Find the tallest member's height.
In main function, you take user information to the ArrayList of all family members' heights. Calculate the average height and find the tallest height. Display the results as the above output.