Welcome to Westonci.ca, the place where your questions are answered by a community of knowledgeable contributors. Discover a wealth of knowledge from experts across different disciplines on our comprehensive Q&A platform. Join our platform to connect with experts ready to provide precise answers to your questions in different areas.

1. Errors can be syntax errors or logic errors (the code works, but not as intended). (3 points)
Which of the following statements contains an error?
I. import Java.util.Scanner;
II. public static void main (String [] args)
III. Scanner in = new Scanner (System.in) ;

2. Errors can be syntax errors or logic errors (the code works, but not as intended). (3 points)
Which of the following statements contains an error?
I. import java.util.Scanner;
II. public static void Main(String [] args)
III. Scanner in = new Scanner(System.in);

3. Errors can be syntax errors or logic errors (the code works, but not as intended). (3 points)
Which of the following statements contains an error?
I. String genderString = in.nextChar();
II. String ageString = in.nextInt();
III. String heightInchesString = in.next();

4. Errors can be syntax errors or logic errors (the code works, but not as intended). (3 points)
Which of the following statements contains an error?
I. String genderString = in.next();
II. String ageString = in.nextInt();
III. String heightInchesString = in.nextString()

5. Errors can be syntax errors or logic errors (the code works, but not as intended). (3 points)
Which of the following statements contains an error?
I. String genderString = in.nextChar();
II. String ageString = in.next();
III. String heightInchesString = in.nextString()

6. Errors can be syntax errors or logic errors (the code works, but not as intended). (3 points)
Which of the following statements contains an error?
I. char gender = genderString.indexOf('0');
II. boolean isFemale = gender == 'F';
III. int age = Integer.parseInt(ageString);

7. Errors can be syntax errors or logic errors (the code works, but not as intended). (3 points)
Which of the following statements contains an error?
I. char gender = genderString.indexOf('0');
II. boolean isFemale = gender == "F";
III. int age = Integer.parseInt(ageString);

8. Errors can be syntax errors or logic errors (the code works, but not as intended). (3 points)
Which of the following statements contains an error?
I. double heightCm = 2.54 * heightIn;
II. if(true)
III. double bMR = (10.0 * heightIn) + (6.25 * weightKg) - (5.0 * age) + s;

9.Errors can be syntax errors or logic errors (the code works, but not as intended). (3 points)
Which of the following statements contains an error?
I. double heightCm = 2.54 / heightIn;
II. if(true)
III. double bMR = (10.0 * weightKg) + (6.25 * heightCm) - (5.0 * age) + s;

10. Which is the appropriate method to round to one decimal place? (3 points)
A) (int)(10*weightKg/10.0)
B)(double)(10*(int)weightKg)/10.0)
C) (int)(10*heightCm)/10.0
D) (int)(100*BMR/100.0)
E) (double)(10*(int)heightCm)/10