How to use Quicksort and binary search [closed]

Jack.Williams

New Member
My names Sarah and I'm a computer science major. I wasnt able to make it to my CSC 241 class for the past 2 weeks because i had important things to take care of which means ive missed alot of stuff. I have this homework due soon and i honestly dont know how to start/do it. If i could get some help i would really appreciate it.Heres my homework:Implement quicksort and binary search that can work with Textbook objects. Compare, sort, and search the Textbooks based on their name (use the dictionary ordering of Strings). You may add code to the Textbook class if you need to, but you may not modify the already existing code.Write a main method that populates a Textbook array of size 30 with newly created Textbook objects, passes that array through your quicksort method, and outputs the resulting array (it should be sorted). Then it should ask the user for a Textbook name, call binary search on the array with that name, and reply with "found at index ..." or "not found" .SOMEONE PLEASE HELP ME!
 
Back
Top