Question: Using Java, how would I go about completing these steps? ,i62..di 56%2:37 PM Lab 13 100 points Create a new Java project. Implement the following
Using Java, how would I go about completing these steps?


,i62..di 56%2:37 PM Lab 13 100 points Create a new Java project. Implement the following 11 steps. Put a cormment"Step X: that marks the start of each step (See sample code belo). Each step is worth 9 points. The comments are worth 1 point. 1. Create a Driver class with a void main method 2. Inside your main method, create an aray of base type Sting. Store the following sentence in the array (each word is one element of the array) The coach urged the team to press on and to score again before the end of the third quarter 3. Create a method countThe thats take an array of words and returns the number of occurrences of 'the" in the aay. Count both capitalized and lowercase "the. Given the above sentence, the method should return 4. Create two other string arrays to test your method 4. Create a method compareOdd that takes two arrays of base type float, and retums true if their odd elements match. For example float[] arr1f= { 1.0f , 2.0f, 3.0f); float[] arrzf = { 44.5f, 2.0f, 4.0f ); System.out.printin(compareOdd(arr1f, arr2f)); 5. Define a class Student. Your Student class should store name, gpa, and age. In your Student 6. Write a method findBestStudent that takes an array of Students and returns a student with the 7. Wrte a method findStudents that takes three arguments-an aray students of students, a should print true. class, override the toString method to print the values of the three mermber variables. highest gpa. For simplicity, assume no two students have the same gpa. minage integer number, and a maxage integer number. findStudents should return an array of students. This array should represent a subset af sfudents, such that the age of each student in the subset is greater than or equal to minage, and less than maxage 8. Inside your Driver class' main method, create five objects of type Student with some values of 9. Create an array arrayOfStudents that stores five students and call your findBestStudent 10. From your main method, call the findStudents method as follows names, gpas. For names and gpas, you are free to set any values you like. Set the ages of the five students as follows: 18, 19, 20, 29, and 30 methad. Print the result of calling the bestStudent methad. StudenstudentsBetween20and30 findStudentsamyOfStudents, 20, 30) 11.print out the studentsBetween20and30 array Your main method should look as follows
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
