JAVA PROGRAM:
import java.util.Scanner;
public class WeightCheck
{
Double weight;
Double height;
WeightCheck(Double weight,Double height)
{
this.weight=weight;
this.height=height;
}
public Double getWeight()
{
return weight;
}
public Double getHeight()
{
return height;
}
public static void main(String[] args) {
Scanner ss=new Scanner(System.in);
System.out.println("Enter gender m or f");
String gender=ss.nextLine();
System.out.println("Enter your Height (in inches)");
Double myHeight=ss.nextDouble();
System.out.println("Enter your Weight (in kg)");
Double myWeight=ss.nextDouble();
WeightCheck wc=new WeightCheck(myWeight, myHeight);
Double idealWeightForMale=wc.getHeight()*4-128;
Double idealWeightForFemale=wc.getHeight()*3.5-108;
System.out.println("Your Gender : "+gender);
System.out.println("Your Height : "+wc.getHeight()+"
inches");
System.out.println("Your Weight : "+wc.getWeight()+" kg");
if(gender.equals("m")){
if(idealWeightForMale > wc.getWeight())
{
System.out.println("Remark : you are underweight,your ideal weight
should be "+ idealWeightForMale+" kg");
}
else if(idealWeightForMale < wc.getWeight())
{
System.out.println("Remark : you are overweight,your ideal weight
should be "+ idealWeightForMale+" kg");
}
else
System.out.println("Remark : your height to weight ratio is good "+
idealWeightForMale+" kg");
}
else
{
if(idealWeightForFemale > wc.getWeight())
{
System.out.println("Remark : you are underweight,your ideal weight
should be "+ idealWeightForFemale+" kg");
}
else if(idealWeightForMale < wc.getWeight())
{
System.out.println("Remark : you are overweight,your ideal weight
should be "+ idealWeightForFemale+" kg");
}
else
System.out.println("Remark : your height to weight ratio is good" +
idealWeightForFemale+" kg");
}
}
}
OUTPUT:

According to researchers at Stanford Medical School, the ideal weight for a woman is found by...
/////////////////////////////////////////////////////////////////////////////////// //This program // 1. asks the user her/his weight and height // 2. then calculates the user's body-mass-index (BMI) // 3. and then prints an appropriate message based on the user's BMI /////////////////////////////////////////////////////////////////////////////////// #include <iostream> using namespace std; void printWelcome(); // ask the weight (in pounds) and height (in inches) of the user and store the values in formal // parameters weight and height, respectively void getWeightAndHeight(float& weight, float& height); // calculate and return the BMI (Body-Mass-Index) based on...
Lindsay Smyth, a 15 year old young woman, was admitted by her pediatrician for evaluation. Her parents, who are divorced, came with her to the hospital. The client lives with her mother and has no siblings. She has no past psychiatric history or other medical problems. Her pediatrician and her parents report that the client has lost 40lbs in the past year. Despite this weight loss, she has continued to go to school and to excel academically. She also jogs...
Can anyone help me with this nutrition homework?
How many Calories did Bobby consume (note that digestible
carbohydrate includes sugar grams)?
A. 2030 B. 2550 C. 2887 D. 2982 E. 3525
Based upon Bobby's Calorie intake, Bobby's Dietary Reference
Intake (DRI) for fiber is _____ grams.
A. 25 B. 38 C. 40.4 D. 42 E. 54.5
Bobby consumed _____ percent of his Calories from sugar, and
_____ the AMDR.
4.4, met
10,met
13,met
26, did not meet
32,didnotmeet
Bobby consumed...