http://deanzacollegecis.jenniferparrish.net/home/c… link f
Need help with this assignment?Get an original answer from a qualified tutor — from $10/page.
Get it written →http://deanzacollegecis.jenniferparrish.net/home/c… link for activity5.1 & 5.2http://deanzacollegecis.jenniferparrish.net/home/c… link for activity6.1 & 6.2http://deanzacollegecis.jenniferparrish.net/home/c…link for lab 3Answer questions 1:1. Given the below linearSearch method, alter it so that it takes in an ArrayList of doubles as a parameter rather than an array of doubles:public static int linearSearch(double[] array, int currentSize, double value) { for (int i = 0; i < currentSize; i++) { if (array[i] == value) { return i; } } return -1;}2. Declare a 2D array of doubles of dimension 2 X 3 named centimeters and assign it the values {2.5, 3.5, 4.5} and {5.5, 6.5, 7.5} in 3 ways!3. Then, write a nested for loop to print the above array to the console.Answer questions 2:1. Define abstraction: removing _____________ features, until only ____________________________________________ remain2. How does the concept of abstraction relate to defining the below Student class?3. Write the class described below:The name of the class is StudentThe class has two public member variables: A String called name and a double called gpa The class has a public member method called printStudent.This method prints out the message: 'Hi! My name is ' + name + '.nAnd my gpa is ' + gpaIt returns nothing4. Now, declare a new Student object named jackie, and assign it the values 'Jackie Chan' for the name and 3.5 for the gpa.5. Finally insert the object jackie into the below ArrayList:ArrayList al = new ArrayList();Activity5.1 and 5.2 due today within 5 hours, the others no worry about the time.
Get a plagiarism-free answer to this question
Send us your instructions and we’ll match you with the best writer in your subject.
- 100% human-written, zero AI
- Turnitin report included
- Confidential — we never share your data
- Free revisions & refunds