Question: I NEED HELP IN MAKING THIS JAVA CODE TO INCLUDE 2 GUI AS SHOWN IN THE PICTURE BELOW THE CODE. import java.util.*; public class BMICalculator

I NEED HELP IN MAKING THIS JAVA CODE TO INCLUDE 2 GUI AS SHOWN IN THE PICTURE BELOW THE CODE.

import java.util.*;

public class BMICalculator {

public static void main(String[] args) {

int sit , put , weight;

float height,Bmi, distance, tim, push;

Scanner input = new Scanner(System.in);

System.out.println("Input your weight in pounds: ");

weight = input.nextInt();

System.out.println(" Input your height in inches: ");

height = input.nextFloat();

System.out.println(" Input your sit up in this week: ");

sit = input.nextInt();

System.out.println(" Input your push up in this week: ");

push = input.nextFloat();

System.out.println(" Input your distance (ft) ran for exercise in this week: ");

distance = input.nextFloat();

System.out.println(" Input your distance time(s) ran in this week: ");

tim = input.nextFloat();

Bmi =weight*703/(height*height);

System.out.println(" Your body mass Index is: " + Bmi);

if (Bmi>25)

{

System.out.println(" You are somewhat overweight.");

System.out.println(" Recommendaton of the Week");

push = push*1.1f;

sit = (int)(sit*1.1);

System.out.println(" Push up." + push + "number");

System.out.println(" Sit up." + sit + "number");

}

else if (Bmi

{

System.out.println(" You are somewhat underweight.");

System.out.println(" Recommendaton of the Week");

push = push*0.8f;

sit=(int) (sit*0.8);

}

else if (Bmi>18.5 && Bmi

{

System.out.println(" Congratulations! You are within a healthy weight range.");

push=push*1.09f;

sit= (int) (sit*1.09);

System.out.println(" Recommendaton of the Week");

System.out.println(" Push up :" + push + " number");

System.out.println(" Sit up :" + sit + " number");

}

}

}

I NEED HELP IN MAKING THIS JAVA CODE TO INCLUDE 2 GUI

urce Design wt Weight (Pounds) Your BMI is Te Height (Inches) Te BMI Evaluation Sit ups Recommendation of the week Push ups Sit ups Distance run Push ups Distance time Calculate BMI ni Bu

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!