import java.util.*;
public class MyClass {
public static void main(String args[]) {
Scanner sc = new
Scanner(System.in);
int cycle
=0,walk=0,weigh=0;
double height,
weight;
boolean Doc=true;
System.out.print("Enter
height: ");
height=sc.nextDouble();
System.out.print("Enter
weight: ");
weight=sc.nextDouble();
if(height>=6
&& weight>=200 && weight<=250){
cycle=30;
walk=20;
weigh=50;
Doc=false;
}
else if(height>=5
&& height <=5.9 && weight>=150 &&
weight<250){
cycle=20;
walk=20;
weigh=40;
Doc=false;
}
else if(height<5
&& weight>=100 && weight<150){
cycle=20;
walk=10;
weigh=30;
Doc=false;
}
if (Doc==true){
System.out.println("Please visit the doctor for health
checkup");
}
else{
System.out.println("Cycle "+cycle+" minutes, walk "+walk+" minutes,
weight upto "+weigh+" pounds 10 minutes");
}
}
}
QUESTION2 Write a Java program for the following problem: Imagine you are the coach in the...