subject

OVERVIEW Body mass index (BMI) is a value derived from the mass (weight) and height of a person. The BMI is defined as the body mass divided by the square of the body height, and is expressed in units of kg/m2, resulting from mass in kilograms and height in meters. The BMI may be determined using a table or chart which displays BMI as a function of mass and height using contour lines or colors for different BMI categories, and which may use other units of measurement (converted to metric units for the calculation). The BMI is a convenient way for classifying persons in to 4 categories based the BMI value as shown the following table:
BMI value Category Less than 18.5 Underweight 18.5 to less than 25 Normal 25 to less than 30 Overweight 30 or higher Obese
A national study in some country to analyze the BMI of the people in the country is considered. In this study, a set of cities is selected in the study and randomly specific number of persons are selected to check the BMI category of each one.
Implement a java project to help in the study analysis with the following steps:
• Read from the user the number of cities (minimum 6 cities.) • For each city: city name and the number of persons (minimum 10 persons) are entered. • For each person in a city: mass and height should be entered, BMI and BMI category have to be computed and printed. • For each city, the number of persons and percent ratio in each BMI category should be computed and printed. • Finally, the program should print a summary report with the following details: o Number of cities. o Total number of persons and percent ratio of persons in each BMI category in all cities. o The name of the best city which has the maximum percent of persons in normal weight BMI category and these people’s percent ratio. o The name of the worst city which has the maximum percent of persons in obese BMI category and these people’s percent ratio. o The name of the city which has the minimum percent of persons in underweight BMI category and these people’s percent ratio.


OVERVIEW

Body mass index (BMI) is a value derived from the mass (weight) and height of a person.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:30
Ryan is working on the layout of her web page. she needs to figure out where her header, navigation bar, text, and images should go. what technique can her?
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
Which action is good business etiquette? a. switching your cell phone off before you enter a meeting b. keeping your cell phone on low volume before you enter a meeting c. setting a pleasant ring tone on your cell phone before you enter a meeting d. setting a standard ringtone on your cell phone before you enter a meeting
Answers: 1
question
Computers and Technology, 22.06.2019 11:30
To hide gridline when you display or print a worksheet
Answers: 1
question
Computers and Technology, 22.06.2019 13:50
The instruction ishl (shift left integer) exists in jvm but not in ijvm. it uses the top two values on the stack, replacing the two with a single value, the result. the sec- ond-from-top word of the stack is the operand to be shifted. its content is shifted left by a value between 0 and 31, inclusive, depending on the value of the 5 least signifi- cant bits of the top word on the stack (the other 27 bits of the top word are ignored). zeros are shifted in from the right for as many bits as the shift count. the opcode for ishl is 120 (0x78).a. what is the arithmetic operation equivalent to shifting left with a count of 2? b. extend the microcode to include this instruction as a part of ijv.
Answers: 1
You know the right answer?
OVERVIEW Body mass index (BMI) is a value derived from the mass (weight) and height of a person. T...
Questions
question
Mathematics, 12.05.2021 01:40
question
English, 12.05.2021 01:40
question
Mathematics, 12.05.2021 01:40
question
Mathematics, 12.05.2021 01:40
question
Mathematics, 12.05.2021 01:40
Questions on the website: 13722359