Consider the following code that will assign a letter grade…

Consider the following code that will assign a letter grade of ‘A’, ‘B’, ‘C’, ‘D’, or ‘F’ depending on a student’s test score. if (score >= 90)    grade = ‘A’; if (score >= 80)    grade = ‘B’; if (score >= 70)    grade = ‘C’; if (score >= 60)    grade = ‘D’; else    grade = ‘F’;

Consider the following outline of a nested if-else structure…

Consider the following outline of a nested if-else structure which has more if clauses than else clauses.  Which of the statements below is true regarding this structure? if (condition1)    if (condition2)       statement1;    else        statement2;

Code segment 2 import java.util.Scanner;     public class Qu…

Code segment 2 import java.util.Scanner;     public class Questions     {        public static void main(String[] args)        {         int x, y, z;         double average;         Scanner scan = new Scanner(System.in);         System.out.println(“Enter an integer value”);         x = scan.nextInt();         System.out.println(“Enter another integer value”);         y = scan.nextInt();         System.out.println(“Enter a third integer value”);         z = scan.nextInt();         average = (x + y + z) / 3;         System.out.println(“The result of my calculation                              is ” + average);        }     } Refer to Code Segment 2: This code computes