Question: Need in Java please Section 1: 1. Add yeur section commert to the code. 2. Print ++N Section 1 - Bubble Sort 3. Print a
Need in Java please

Section 1: 1. Add yeur section commert to the code. 2. Print ++N Section 1 - Bubble Sort 3. Print a blark line. 4. Create an artay called studentGrates and populste the array with the following grades: 65,95,75,55,66,90,96,68,97, and 78. 6. Create a method called sortArrayfscBS( which irrpiements a bubble scri algarithm that wil sort the grode array fram lossest to highest. 7. Create a melhod called prirtAvray(0 which wil peint the coriterts of an integer array paseed to it. a, On a new line, primt "The unsarbed list of grades is," follswed try the contants of the ursated artay using the printA Array) methad. 9. Print a blark line. 10. Call the sortArrayDescbs() methou. 11. On a new line, primt "The grades in descending corder are," followed by the newly sorted array using the print Array0) meathod. 12. Call the sortArtay/scBS() metusd. 13. On a new line, prini "The grades in asoending arder are," follswed by the nesty sarkad array using the printurnay) metiod. section 2 : 1. Add your section commerth in the cade- 2. Print a blark line. 4. Print a blark line. 6. Create a meethod called sartArrayAseOS() which implerrents a quick sart algorithm, using cecursion, that will sart the grade array from lowest ba highess. 7. For the follawing steps, use the atigiral unsoried grades array from Sectian 1. 8. On a new line, print The unsarked list of gradtes is, followed by the econtents of the urearted array using the printAmay() methad. 9. Print a blank line. 10. Call the surtArayDascos m rualhod. 11. On a new line, primt The grades in doscencing order are," fallowed by the rewly soried array using the printArray0 maitsod. 12. Call the sartAeraynse0Si) method. 13. On a new line, primt "The grades in ascending arder are," followed by the newly sarked array using the printAnrayl) method. section 3 : 1. Add your section commert is the code. 2. Print a blark line. 4. Print a blark line. 5. Write a methd named seq Searchi) which accepts an integer artay and a value ba find in the array. Have the seq Sesuchi) mechod retum a steing message stating the index in the ancay whare the value sought was located or a messige stating the value was not located in the array. 6. Call the soq Searchl) method passing it a copy of the grades aray sorlew in ascending adar and the value 75. 7. On a new line, print "The corters of the gade iarray are," followed by the gorted grade array usad. 8. Print a blank line. 9. On a new line, prirt the message retumed from the sexch method. 10. Call the seq search 0 mathod a secand time, passing it the same copy of the sorted gredes array along with the value 60 . 11. Print a blank line 12. On a now line, prirt tha message tetarned from the searti method. section 4 : 1. Add ynur section cormmerit in the code. 2. Print a blank line. 3. On a new line, prirt 4. Pritt a blark line. sataing the index in the array where the value sought was located or a massagae stating the value was nos localed in the array. 8. Call the binary Searcho method passing it the same coply of the sorted grades array fram Section 3 ard the value 56. 7. On a new line, primt -Tha cerrients of the grade array are," followed by the sarted grade array used. 8. Print is blark line 9. On a new line, prirt the message retumed frum the sexch metind. 10. Cali the soq search 0 method a secand time, passing it the same copy of the sorted grades array along with the value 50 . 11. Print a blark line. 12. On a new line, prirt the meessage retumed from the sesuch medind
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
