DEVELOP THE FOLLOWING CLASS AND AN APPROPRIATE TEST DRIVER.
Develop an immutable Person class that contains the following values:

name
age
height_weight

Include in the class:

appropriate constructor
getter methods
toString method
BMI method
isOverweight method (returns Boolean value)

HeightAndWeight class very similar to the XYCoord class from the lecture slides. The class was to have an appropriate constructor, setters and getters, and a print method that would print “5 ft 7 ins. 140 lbs.”.
The other part of the lab is to write a test driver for it, i.e., a separate main program that creates an object of type HeightAndWeight and shows that all of the methods work.
Calculation of Body-Mass Index (BMI)
Body Mass Index is a simple calculation using a person’s height and weight. The formula is
BMI = kg/m2
where kg is a person’s weight in kilograms and m2 is their height in metres squared. A BMI of 25.0 or more is overweight, while the healthy range is 18.5 to 24.9. BMI applies to most adults 18-65 years.
Use of Following Private Methods
double inchestoMeters(int h)
double poundsToKg(int lbs)
Conversion Values
1 inch is equal to 0.0254 meters
1 pound is equal to 0.45359237 kilograms (kg)
 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount! Use Discount Code “Newclient” for a 15% Discount!NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.

The post coding a basic java program appeared first on Essay Fount.


What Students Are Saying About Us

.......... Customer ID: 12*** | Rating: ⭐⭐⭐⭐⭐
"Honestly, I was afraid to send my paper to you, but you proved you are a trustworthy service. My essay was done in less than a day, and I received a brilliant piece. I didn’t even believe it was my essay at first 🙂 Great job, thank you!"

.......... Customer ID: 11***| Rating: ⭐⭐⭐⭐⭐
"This company is the best there is. They saved me so many times, I cannot even keep count. Now I recommend it to all my friends, and none of them have complained about it. The writers here are excellent."


"Order a custom Paper on Similar Assignment at essayfount.com! No Plagiarism! Enjoy 20% Discount!"