Answer To: After reading allL02content pages inLesson 02: Inheritance and Interfaces,you will complete...
Pranav answered on Jul 10 2021
.metadata/.lock
.metadata/.log
!SESSION 2021-07-09 14:36:06.058 -----------------------------------------------
eclipse.buildId=4.17.0.I20200902-1800
java.version=14.0.1
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_IN
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
!ENTRY org.eclipse.jface 2 0 2021-07-09 14:40:41.237
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
!SUBENTRY 1 org.eclipse.jface 2 0 2021-07-09 14:40:41.237
!MESSAGE A conflict occurred for CTRL+SHIFT+T:
Binding(CTRL+SHIFT+T,
ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
Open a type in a Java editor,
Category(org.eclipse.ui.category.navigate,Navigate,null,true),
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@7b8fcdf2,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
Binding(CTRL+SHIFT+T,
ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
,
Category(org.eclipse.lsp4e.category,Language Servers,null,true),
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@54d2f5d3,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
!ENTRY org.eclipse.egit.ui 2 0 2021-07-09 14:41:05.699
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Admin'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
!SESSION 2021-07-10 01:41:13.752 -----------------------------------------------
eclipse.buildId=4.17.0.I20200902-1800
java.version=14.0.1
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_IN
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
!ENTRY org.eclipse.jface 2 0 2021-07-10 01:42:17.067
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
!SUBENTRY 1 org.eclipse.jface 2 0 2021-07-10 01:42:17.067
!MESSAGE A conflict occurred for CTRL+SHIFT+T:
Binding(CTRL+SHIFT+T,
ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
Open a type in a Java editor,
Category(org.eclipse.ui.category.navigate,Navigate,null,true),
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@49f1184e,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
Binding(CTRL+SHIFT+T,
ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
,
Category(org.eclipse.lsp4e.category,Language Servers,null,true),
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@7ebaf0d,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
!ENTRY org.eclipse.egit.ui 2 0 2021-07-10 01:42:37.255
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Admin'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
.metadata/.plugins/org.eclipse.core.resources/.history/1a/80c1a9709ee0001b190ac2ff328be91c
package MainApp.Model;
/**
* Java class used to define the height of a person
* in our application model
* @author Admin
* @version 09/07/2021
*/
public class Height {
private int feet;
private int inches;
public Height()
{ this.feet = 0;
this.inches = 0;
}
public Height(int feet, int inches)
{ super();
this.feet = feet;
this.inches = inches;
}
@Override
public String toString()
{ return "Height : "+ feet + "' " + inches + "\"";
}
public int getFeet()
{ return feet;
}
public int getInches()
{ return inches;
}
}
.metadata/.plugins/org.eclipse.core.resources/.history/1f/00a816a898e0001b190ac2ff328be91c
package MainApp.Model;
public class FootballPlayer {
}
.metadata/.plugins/org.eclipse.core.resources/.history/20/702836aa9fe0001b190ac2ff328be91c
package MainApp.Model;
/**
* A Java class used to represent an offensive line
* of a football game
* @author Admin
* @version 1.01 09/07/2021
*/
public class OffensiveLine {
private FootballPlayer center;
private FootballPlayer offensiveGuard;
private FootballPlayer offensiveTackle;
@Override
public String toString()
{ return "OffensiveLine : Center = " + center
+ "\n Offensive Guard = " + offensiveGuard
+ "\n Offensive Tackle = " + offensiveTackle;
}
/**
* A method that calculated the average height of all three
* football player at the offensive line
* @return
*/
public int averageHeight()
{ //collecting the part of the height of players which consists of
//feet, for later converting them into inches
int totalHeightInFeet = ( center.getHeight().getFeet()
+ offensiveGuard.getHeight().getFeet()
+ offensiveTackle.getHeight().getFeet() ) ;
//converting height in feet into inches
int totalHeightInInches = totalHeightInFeet * Height.INCHES_PER_FEET;
//finally adding the part of the height of players which consists of
//inches to get the overall sum of their heights in inches
totalHeightInInches += center.getHeight().getInches()
+ offensiveGuard.getHeight().getInches()
+ offensiveTackle.getHeight().getInches() ;
int averageHeightInInches = totalHeightInInches/3;
return averageHeightInInches;
}
}
.metadata/.plugins/org.eclipse.core.resources/.history/38/603e4eeab9e0001b190ac2ff328be91c
package MainApp.Model;
/**
* A Java class used to represent an offensive line
* of a football game
* @author Admin
* @version 1.01 09/07/2021
*/
public class OffensiveLine {
private FootballPlayer center;
private FootballPlayer offensiveGuard;
private FootballPlayer offensiveTackle;
//a default constructor for the class
public OffensiveLine()
{ this.center = new FootballPlayer();
this.offensiveGuard = new FootballPlayer();
this.offensiveTackle = new FootballPlayer();
}
public OffensiveLine(FootballPlayer center, FootballPlayer offensiveGuard, FootballPlayer offensiveTackle) {
super();
this.center = center;
this.offensiveGuard = offensiveGuard;
this.offensiveTackle = offensiveTackle;
}
@Override
public String toString()
{ return "OffensiveLine : Center = " + center
+ "\n Offensive Guard = " + offensiveGuard
+ "\n Offensive Tackle = " + offensiveTackle;
}
/**
* A method that calculated the average height of all three
* football player at the offensive line
* @return
*/
public int averageHeight()
{ //collecting the part of the height of players which consists of
//feet, for later converting them into inches
int totalHeightInFeet = ( center.getHeight().getFeet()
+ offensiveGuard.getHeight().getFeet()
+ offensiveTackle.getHeight().getFeet() ) ;
//converting height in feet into inches
int totalHeightInInches = totalHeightInFeet * Height.INCHES_PER_FEET;
//finally adding the part of the height of players which consists of
//inches to get the overall sum of their heights in inches
totalHeightInInches += center.getHeight().getInches()
+ offensiveGuard.getHeight().getInches()
+ offensiveTackle.getHeight().getInches() ;
int averageHeightInInches = totalHeightInInches/3;
return averageHeightInInches;
}
}
.metadata/.plugins/org.eclipse.core.resources/.history/3a/80e11b47a4e0001b190ac2ff328be91c
package MainApp.Model;
/**
* A Java class used to represent a football player
* in our application model
* @author Admin
* @version 1.01 09/07/2021
*/
public class FootballPlayer extends Person{
private int number;
private String position;
//a default constructor for the class
public FootballPlayer()
{ this.number = 1;
this.position = "Guard";
}
public FootballPlayer(int number, String position, String name,
Height height, int weight, String hometown, String highSchool)
{ super(name, height, weight, hometown, highSchool);
this.number = number;
this.position = position;
}
@Override
public String toString()
{ return "FootballPlayer : [ Number=" + number + ", Position=" + position + " ]";
}
}
.metadata/.plugins/org.eclipse.core.resources/.history/44/404f6f1ef6e0001b158eb748a6b26fde
package MainApp.Model;
/**
* Java class used to define the height of a person
* in our application model
* @author Admin
* @version 09/07/2021
*/
public class Height {
private int feet;
private int inches;
//a default constructor for the class
public Height()
{ this.feet = 0;
this.inches = 0;
}
public Height(int feet, int inches)
{ super();
this.feet = feet;
this.inches = inches;
}
@Override
public String toString()
{ return "Height : "+ feet + "' " + inches + "\"";
}
public int getFeet()
{ return feet;
}
public int getInches()
{ return inches;
}
}
.metadata/.plugins/org.eclipse.core.resources/.history/4c/00637080bae0001b190ac2ff328be91c
package MainApp.Model;
/**
* A Java class used to initialize our model
* @author Admin
* @version 1.01 09/07/2021
*/
public class Model {
public Model()
{ //creating 3 FootballPlayer objects
FootballPlayer footballPlayer1 = new FootballPlayer(5, "Offense", "Wilbur",
new Height(5,8), 67, "Chicago", "Chicago" );
FootballPlayer footballPlayer2 = new FootballPlayer(8, "Offense", "Samuel",
new Height(6,0), 75, "Boston", "Boston" );
FootballPlayer footballPlayer3 = new FootballPlayer(3, "Offense", "Jade",
new Height(5,11), 60, "Seattle", "Seattle" );
//creating an OffensiveLine object using the 3 Football Player objects
OffensiveLine offensiveLine =
new OffensiveLine(footballPlayer1, footballPlayer2, footballPlayer3);
//printing information about offensive line
System.out.println(offensiveLine);
//printing the average height of the offensive line
int averageHeight = offensiveLine.averageHeight();
System.out.println("Average height of offensive line : "
+ averageHeight / Height.INCHES_PER_FEET + "' "
+ averageHeight % Height.INCHES_PER_FEET + "\"" );
}
}
.metadata/.plugins/org.eclipse.core.resources/.history/59/70d7729299e0001b190ac2ff328be91c
.metadata/.plugins/org.eclipse.core.resources/.history/59/f0e91453a4e0001b190ac2ff328be91c
package MainApp.Model;
/**
* A Java class used to represent an offensive line
* of a football game
* @author Admin
* @version 1.01 09/07/2021
*/
public class OffensiveLine {
private FootballPlayer center;
private FootballPlayer offensiveGuard;
private FootballPlayer offensiveTackle;
//a default constructor for the class
public OffensiveLine()
{ this.center = new FootballPlayer();
this.offensiveGuard = new FootballPlayer();
this.offensiveTackle = new FootballPlayer();
}
public OffensiveLine(FootballPlayer center, FootballPlayer offensiveGuard, FootballPlayer offensiveTackle) {
super();
this.center = center;
this.offensiveGuard = offensiveGuard;
this.offensiveTackle = offensiveTackle;
}
@Override
public String toString()
{ return "OffensiveLine : Center " + center
+ "\n Offensive Guard = " + offensiveGuard
+ "\n Offensive Tackle = " + offensiveTackle;
}
/**
* A method that calculated the average height of all three
* football player at the offensive line
* @return
*/
public int averageHeight()
{ //collecting the part of the height of players which consists of
//feet, for later converting them into inches
int totalHeightInFeet = ( center.getHeight().getFeet()
+ offensiveGuard.getHeight().getFeet()
+ offensiveTackle.getHeight().getFeet() ) ;
//converting height in feet into inches
int totalHeightInInches = totalHeightInFeet * Height.INCHES_PER_FEET;
//finally adding the part of the height of players which consists of
//inches to get the overall sum of their heights in inches
totalHeightInInches += center.getHeight().getInches()
+ offensiveGuard.getHeight().getInches()
+ offensiveTackle.getHeight().getInches() ;
int averageHeightInInches = totalHeightInInches/3;
return averageHeightInInches;
}
}
.metadata/.plugins/org.eclipse.core.resources/.history/5a/e0107778bae0001b190ac2ff328be91c
package MainApp.Model;
/**
* Java class used to define the height of a person
* in our application model
* @author Admin
* @version 09/07/2021
*/
public class Height {
private int feet;
private int inches;
//constant that denotes number of inches per feet
public static final int INCHES_PER_FEET = 12;
//a default constructor for the class
public Height()
{ this.feet = 0;
this.inches = 0;
}
public Height(int feet, int inches)
{ super();
this.feet = feet;
this.inches = inches;
}
@Override
public String toString()
{ return "Height : "+ feet + "' " + inches + "\"";
}
public int getFeet()
{ return feet;
}
public int getInches()
{ return inches;
}
}
.metadata/.plugins/org.eclipse.core.resources/.history/60/801420cd96e0001b190ac2ff328be91c
package Model;
public class App {
}
.metadata/.plugins/org.eclipse.core.resources/.history/65/3076dd9496e0001b190ac2ff328be91c
module MyFootballApp {}
.metadata/.plugins/org.eclipse.core.resources/.history/66/e0a0ff9aa2e0001b190ac2ff328be91c
package MainApp;
/**
* A Java class devising the main app of our application
* @author Admin
* @version 1.01 09/07/2021
*/
public class App {
public static void main(String[] args)
{
}
}
.metadata/.plugins/org.eclipse.core.resources/.history/67/a0921468a0e0001b190ac2ff328be91c
package MainApp.Model;
/**
* A Java class used to represent a football player
* in our application model
* @author Admin
* @version 1.01 09/07/2021
*/
public class FootballPlayer extends Person{
private int number;
private String position;
//a default constructor for the class
public FootballPlayer()
{ this.number = 1;
this.position = "Guard";
}
public FootballPlayer(int number, String position)
{ super();
this.number = number;
this.position = position;
}
@Override
public String toString()
{ return "FootballPlayer : Number=" + number + ", Position=" + position;
}
}
.metadata/.plugins/org.eclipse.core.resources/.history/76/c00f0cfb96e0001b190ac2ff328be91c
.metadata/.plugins/org.eclipse.core.resources/.history/76/e021b9369ae0001b190ac2ff328be91c
package MainApp.Model;
/**
* A Java class used to represent a person in our application model
* @author Admin
* @version 1.01 09/07/2021
*/
public class Person {
private String name;
private Height height;
private int weight;
private String hometown;
private String highSchool;
//a default constructor for the class
public Person() {}
public Person(String name, Height height, int weight, String hometown, String highSchool) {
super();
this.name = name;
this.height = height;
this.weight = weight;
this.hometown = hometown;
this.highSchool = highSchool;
}
@Override
public String toString() {
return "Person : name=" + name + ", height=" + height + ", weight=" + weight + ", hometown=" + hometown
+ ", highSchool=" + highSchool;
}
}
.metadata/.plugins/org.eclipse.core.resources/.history/7a/700cf64abae0001b190ac2ff328be91c
package MainApp.Model;
/**
* A Java class used to represent an offensive line
* of a football game
* @author Admin
* @version 1.01 09/07/2021
*/
public class OffensiveLine {
private FootballPlayer center;
private FootballPlayer offensiveGuard;
private FootballPlayer offensiveTackle;
//a default constructor for the class
public OffensiveLine()
{ this.center = new FootballPlayer();
this.offensiveGuard = new FootballPlayer();
this.offensiveTackle = new FootballPlayer();
}
public OffensiveLine(FootballPlayer center, FootballPlayer offensiveGuard, FootballPlayer offensiveTackle) {
super();
this.center = center;
this.offensiveGuard = offensiveGuard;
this.offensiveTackle = offensiveTackle;
}
@Override
public String toString()
{ return "OffensiveLine : Center = " + center
+ "\n\n Offensive Guard = " + offensiveGuard
+ "\n\n Offensive Tackle = " + offensiveTackle;
}
/**
* A method that calculated the average height of all three
* football player at the offensive line
* @return
*/
public int averageHeight()
{ //collecting the part of the height of players which consists of
//feet, for later converting them into inches
int totalHeightInFeet = ( center.getHeight().getFeet()
+ offensiveGuard.getHeight().getFeet()
+ offensiveTackle.getHeight().getFeet() ) ;
//converting height in feet into inches
int totalHeightInInches = totalHeightInFeet * Height.INCHES_PER_FEET;
//finally adding the part of the height of players which consists of
//inches to get the overall sum of their heights in inches
totalHeightInInches += center.getHeight().getInches()
+ offensiveGuard.getHeight().getInches()
+ offensiveTackle.getHeight().getInches() ;
int averageHeightInInches = totalHeightInInches/3;
return averageHeightInInches;
}
}
.metadata/.plugins/org.eclipse.core.resources/.history/7d/8050f5e09ee0001b190ac2ff328be91c
.metadata/.plugins/org.eclipse.core.resources/.history/7f/9088623cf2e0001b158eb748a6b26fde
package MainApp.Model;
/**
* A Java class used to initialize our model
* @author Admin
* @version 1.01 09/07/2021
*/
public class Model {
public Model()
{ //creating 3 FootballPlayer objects
FootballPlayer footballPlayer1 = new FootballPlayer(5, "Offense", "Wilbur",
new Height(5,8), 67, "Chicago", "Chicago" );
FootballPlayer footballPlayer2 = new FootballPlayer(8, "Offense", "Samuel",
new Height(6,0), 75, "Boston", "Boston" );
FootballPlayer footballPlayer3 = new FootballPlayer(3, "Offense", "Jade",
new Height(5,11), 60, "Seattle", "Seattle" );
//creating an OffensiveLine object using the 3 Football Player objects
OffensiveLine offensiveLine =
new OffensiveLine(footballPlayer1, footballPlayer2, footballPlayer3);
//printing information about offensive line
System.out.println(offensiveLine);
//printing the average height of the offensive line
int averageHeight = offensiveLine.averageHeight();
final int INCHES_PER_FEET = 12;
System.out.println("Average height of offensive line : "
+ averageHeight / INCHES_PER_FEET + "' "
+ averageHeight % INCHES_PER_FEET + "\"" );
}
}
.metadata/.plugins/org.eclipse.core.resources/.history/80/c0ead1a096e0001b190ac2ff328be91c
module MyFootballApp {
}
.metadata/.plugins/org.eclipse.core.resources/.history/86/0096a5a8a2e0001b190ac2ff328be91c
package MainApp.Model;
/**
* A Java class used to initialize our model
* @author Admin
* @version 1.01 09/07/2021
*/
public class Model {
public Model()
{ //creating 3 FootballPlayer objects
FootballPlayer footballPlayer1 = new FootballPlayer(5, "Offense", "Wilbur",
new Height(5,8), 67, "Chicago", "Chicago" );
FootballPlayer footballPlayer2 = new FootballPlayer(8, "Offense", "Samuel",
new Height(6,0), 75, "Boston", "Boston" );
FootballPlayer footballPlayer3 = new FootballPlayer(3, "Offense", "Jade",
new Height(5,11), 60, "Seattle", "Seattle" );
//creating an OffensiveLine object using the 3 Football Player objects
OffensiveLine offensiveLine =
new OffensiveLine(footballPlayer1, footballPlayer2, footballPlayer3);
//printing information about offensive line
System.out.println(offensiveLine);
//printing the average height of the offensive line
int averageHeight = offensiveLine.averageHeight();
System.out.println("Average height of offensive line : "
+ averageHeight / Height.INCHES_PER_FEET + "' "
+ averageHeight % Height.INCHES_PER_FEET + "\"" );
}
}
.metadata/.plugins/org.eclipse.core.resources/.history/8a/10c366069ce0001b190ac2ff328be91c
package MainApp.Model;
/**
* A Java class used to represent a person in our application model
* @author Admin
* @version 1.01 09/07/2021
*/
public class Person {
private String name;
private Height height;
private int weight;
private String hometown;
private String highSchool;
//a default constructor for the class
public Person() {}
public Person(String name, Height height, int weight, String hometown, String highSchool) {
super();
this.name = name;
this.height = height;
this.weight = weight;
this.hometown = hometown;
this.highSchool = highSchool;
}
@Override
public String toString() {
return "Person : Name=" + name + ", Height=" + height + ", Weight=" + weight + ", Hometown=" + hometown
+ ", HighSchool=" + highSchool;
}
}
.metadata/.plugins/org.eclipse.core.resources/.history/8b/a0b37c109ce0001b190ac2ff328be91c
package MainApp.Model;
/**
* A Java class used to represent an offensive line
* of a football game
* @author Admin
* @version 1.01 09/07/2021
*/
public class OffensiveLine {
private FootballPlayer center;
private FootballPlayer offensiveGuard;
private FootballPlayer offensiveTackle;
@Override
public String toString() {
return "OffensiveLine : Center = " + center
+ "\n Offensive Guard = " + offensiveGuard
+ "\n Offensive Tackle = " + offensiveTackle;
}
}
.metadata/.plugins/org.eclipse.core.resources/.history/8c/b041affba3e0001b190ac2ff328be91c
package MainApp.Model;
/**
* A Java class used to represent a football player
* in our application model
* @author Admin
* @version 1.01 09/07/2021
*/
public class FootballPlayer extends Person{
private int number;
private String position;
//a default constructor for the class
public FootballPlayer()
{ this.number = 1;
this.position = "Guard";
}
public FootballPlayer(int number, String position, String name,
Height height, int weight, String hometown, String highSchool)
{ super(name, height, weight, hometown, highSchool);
this.number = number;
this.position = position;
}
@Override
public String toString()
{ return "FootballPlayer : Number=" + number + ", Position=" + position;
}
}
.metadata/.plugins/org.eclipse.core.resources/.history/96/20367b1ef6e0001b158eb748a6b26fde
package MainApp.Model;
/**
* A Java class used to represent a football player
* in our application model
* @author Admin
* @version 1.01 09/07/2021
*/
public class FootballPlayer extends Person{
private int number;
private String position;
//a default constructor for the class
public FootballPlayer()
{ this.number = 1;
this.position = "Guard";
}
public FootballPlayer(int number, String position, String name,
Height height, int weight, String hometown, String highSchool)
{ super(name, height, weight, hometown, highSchool);
this.number = number;
this.position = position;
}
@Override
public String toString()
{ return "[ FootballPlayer : " + super.toString() +
" Number=" + number + ", Position=" + position + " ]";
}
}
.metadata/.plugins/org.eclipse.core.resources/.history/9c/4090bf709ae0001b190ac2ff328be91c
package MainApp.Model;
public class OffensiveLine {
}
.metadata/.plugins/org.eclipse.core.resources/.history/9d/e0f21f3ba4e0001b190ac2ff328be91c
package MainApp.Model;
/**
* A Java class used to represent an offensive line
* of a football game
* @author Admin
* @version 1.01 09/07/2021
*/
public class OffensiveLine {
private FootballPlayer center;
private FootballPlayer offensiveGuard;
private FootballPlayer offensiveTackle;
//a default constructor for the class
public OffensiveLine()
{ this.center = new FootballPlayer();
this.offensiveGuard = new FootballPlayer();
this.offensiveTackle = new FootballPlayer();
}
public OffensiveLine(FootballPlayer center, FootballPlayer offensiveGuard, FootballPlayer offensiveTackle) {
super();
this.center = center;
this.offensiveGuard = offensiveGuard;
this.offensiveTackle = offensiveTackle;
}
@Override
public String toString()
{ return "OffensiveLine : Center = [ " + center + " ]"
+ "\n Offensive Guard = [ " + offensiveGuard + " ]"
+ "\n Offensive Tackle = [ " + offensiveTackle + " ]";
}
/**
* A method that calculated the average height of all three
* football player at the offensive line
* @return
*/
public int averageHeight()
{ //collecting the part of the height of players which consists of
//feet, for later converting them into inches
int totalHeightInFeet = ( center.getHeight().getFeet()
+...