Question: Please help me correct my error, thanks. 8 1 import java.util.Scanner; 2 public class Main 3- { 4 public static void main(String[] args) 5. {

Please help me correct my error, thanks.

Please help me correct my error, thanks. 8 1 import java.util.Scanner; 2

public class Main 3- { 4 public static void main(String[] args) 5.

8 1 import java.util.Scanner; 2 public class Main 3- { 4 public static void main(String[] args) 5. { 6 7 Scanner keyboard= new Scanner(System.in); System.out.println("Enter the resting Heart Rate: "); 9 int hr= keyboard.nextInt(); 10 System.out.println("Enter age: "); 11 int age= keyboard.nextInt(); 12 System.out.println("Enter gender (M/F): "); 13 char c= keyboard.next().charAt(); 14 int hrmax= 220-age; 15 int vo2Max=(15.0*(hrmax/hrrest)); 16 17 if((age70)&&(c=='m' || c=='M')) 18 System.out.println("Invalid age!"); 19 else if((age60)&&(c=='f' || c=='F')) 20 System.out.println("Invalid age!"); else if(c=='m' || c=='M') 22 { 23. if(age >= 18 && age=40 && vo2Max=18 && age= 62 && vo2Max= 18 && age= 55 && vo2Max=18 && age=52 && vo2Max= 10 && age=50 && vo2Max

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!