subject

G A fitness instructor wants to find out the number of students who are underweight, ideal, overweight and obese. The BMI (Body Mass Index) is a common tool for deciding whether a person has an appropriate body weight. It measures a person's weight in relation to their height. You have been asked to create a program to calculate BMI of each student, determine number of students in each category and an average BMI. BMI is calculated as follows: BMI = (weight)/(height*height). BMI Category Less than 18.5 Underweight At least 18.5 but less than 25 Ideal At least 25 but less than 30 Overweight Over 30 Obese Your goal is to create an application to allow the fitness instructor to continuously input height (meters) and weight (kilograms) until the fitness instructor has indicated they are finished entering data. When an invalid input is provided the user must see an error message and be re prompted. Once all of the data has been entered, generate a report showing the number of students in each category and the average BMI.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:10
Assume that to_the_power_of is a function that expects two int parameters and returns the value of the first parameter raised to the power of the second parameter. write a statement that calls to_the_power_of to compute the value of cube_side raised to the power of 3 and that associates this value with cube_volume.
Answers: 1
question
Computers and Technology, 23.06.2019 10:50
The volume v and paper surface area a of a conical paper cup are given by where r is the radius of the base of the cone and h is the height of the cone. a. by eliminating h, obtain the expression for a as a function of r and v. b. create a user-de ned function that accepts r as the only argument and computes a for a given value of v. declare v to be global within the function. c. for v ! 10 in.3 , use the function with the fminbnd function to compute the value of r that minimizes the area a. what is the corresponding value of the height h? investigate the sensitivity of the solution by plotting v versus r. how much can r vary about its optimal value before the area increases 10 percent above its minimum value?
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
Write a program that prints the day number of the year, given the date in the form month-day-year. for example, if the input is 1-1-2006, the day number is 1; if the input is 12-25-2006, the day number is 359. the program should check for a leap year. a year is a leap year if it is divisible by 4, but not divisible by 100. for example, 1992 and 2008 are divisible by 4, but not by 100. a year that is divisible by 100 is a leap year if it is also divisible by 400. for example, 1600 and 2000 are divisible by 400. however, 1800 is not a leap year because 1800 is not divisible by 400.
Answers: 3
question
Computers and Technology, 24.06.2019 22:00
Ican’t open these when it’s just a comment. someone pls explain why this is happening
Answers: 1
You know the right answer?
G A fitness instructor wants to find out the number of students who are underweight, ideal, overweig...
Questions
question
Spanish, 20.08.2019 06:20
question
Mathematics, 20.08.2019 06:20
question
Social Studies, 20.08.2019 06:20
question
Mathematics, 20.08.2019 06:20
Questions on the website: 13722363