Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //prints all inputed information
- System.out.println(david.getName() + "'s information");
- System.out.println("Weight: " + person.getWeight() + " pounds");
- System.out.println("Height: " + person.getHeight() + " inches");
- System.out.println("Age: " + person.getAge() + " years");
- //prints gender, bmr, bmi, and tdee
- System.out.println("These are for a " + cGender + ".");
- System.out.println("");
- System.out.printf("BMR is %.2f\n", person.calcBmr());
- System.out.printf("BMI is %.2f\n", person.calcBmi());
- System.out.printf("TDEE is %.2f\n\n", person.calcTdee());
- System.out.println(person.calcStatus());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement