i have to create a Weight application that prompts the user for their gender (male or female) and their height and then determines their ideal body weight. The following formula is used to approximate ideal body weight:
men: Ideal Body Weight (in kilograms) = 60+ 2.3 kg per inch over 5 feet.
women: Ideal Body Weight (in kilograms) = 55.5 + 2.3 kg per inch over 5 feet.
The answer should be displayed in both kilograms and pounds. The following formula is used to convert kilograms to pounds:
pounds = kilograms * 2.2
this is what i have so far. i don't know what to do next. Please fix and give me advises upon completing the application
public class Weight
{
public static void main (String[]args)
{
Scanner input = new Scanner(System.in);
int gender;
int male = 1;
int female = 2;
int menweight = 60;
double womenweight = 55.5;
int height;
System.out.print("What is your gender ? ( Press 1 = male and 2 = female ");
int gender = input.nextInt() ;
System.out.print("What is your height?");
int height = input.nextInt() ;
if ( gender = male )
height =
}
}