Java Reference
In-Depth Information
Body fat ¼ body weight - B
Body fat percentage ¼ body fat 100 / body weight
Body fat formula for men:
A1 ¼ (Body weight 1.082) + 94.42
A2 ¼ Waist measurement 4.15
B ¼ A1 - A2
Body fat ¼ body weight - B
Body fat percentage ¼ body fat 100 / body weight
Write a program to calculate the body fat of a person.
19. Rewrite the program in Example 4-24, using the String method equals .
4
Search WWH ::




Custom Search