Given the following code, identify all compiler and runtime…

Given the following code, identify all compiler and runtime errors by their respective line numbers. Include an explanation for each error. If there are no errors, write “None”. 1| interface Playable { // in Playable.java 2| void play(); 3| } 4| 5| class Guitar implements Playable { // in Guitar.java 6| public void play() { System.out.println(“Strum”); } 7| public void tune() { System.out.println(“Tuning”); } 8| public static void main(String, , …, OR None Runtime errors: , , …, OR None

Write a compareTo method for a Student class that uses two i…

Write a compareTo method for a Student class that uses two instance variables to determine order: gpa (double) and studentID (int). The ordering of Student established by this class is:  Order first by gpa, in descending order (highest GPA first). Order second by studentID, in ascending order. If both variables are the same between the instances, the students are equal. You do not have to add the code for the instance variables.

Perform Binary Search in this array to search for the value…

Perform Binary Search in this array to search for the value 17. Fill in the table below with the order of elements searched (one number per row). For example, if we look at 2 first, put 2 as the first entry of the table. You may not need to use all the entries of the table. Array: {2,    5,    8,    12,    17,    23,    29} 1. __a__ 2. __b__ 3. __c__ 4. __d__ 5. __e__ 6. __f__ 7. __g__   Use this template for your answer (please type fully – you cannot copy): a: b: *do not include if there is no answer c: *do not include if there is no answer … g: *do not include if there is no answer