[SOLVED] Just follow the instructions!

I don’t know how to handle this Computer Science question and need guidance.

Struggling to find relevant content or pressed for time? – Don’t worry, we have a team of professionals to help you on
[SOLVED] Just follow the instructions!
Get a 15% Discount on this Paper
Order Now
  1. Adjust the code we did in class to do a recursive binary search on a sorted array of Strings instead of integers.
  1. This lab will involve the following new features:
    1. Recursion
    2. Binary Search Algorithm
  1. These instructions will be more bare than usual since the source code from class is being provided and I want you to think through all the changes you need to make.
  1. Set up your String array.
    1. Instead of having a “for” loop populating your array with random numbers, go ahead and make your array 10 in length and populate it in 10 lines of code that put a different string in each array slot, such as:

asWords[0] = “Frank”;

  1. Change all references to the array and any references pulling values from the array to String type instead of int type.
  1. Adjustment to binary search method.
    1. Besides figuring out which things have to now become String type, you need to compare the string values a bit different than the integers by using the “equals” and “compareTo” methods.
      1. Example for equals check:
        1. Instead of…
          1. iTarget == …
        2. It’s this…
          1. sTarget.equals(…)
      2. Example for greater than check:
        1. Instead of…
          1. iTarget > …
        2. It’s this…
          1. sTarget.compareTo(…) > 0
            1. The reason you are seeing if the comparison is greater than 0 is because the “compareTo” method returns a number greater than 0 if sTarget is greater than the string that’s passed in the parentheses. If it’s equal, it returns 0 (but that won’t happen because the equals comparison was in the first if statement). And if it’s less than, it returns a number less than 0.
  1. You can remove, comment out, or update the traditional search method at the bottom of the code. It’s up to you.

Calculate the price
Make an order in advance and get the best price
Pages (550 words)
*Price with a welcome 15% discount applied.
Pro tip: If you want to save more money and pay the lowest price, you need to set a more extended deadline.
We know how difficult it is to be a student these days. That's why our prices are one of the most affordable on the market, and there are no hidden fees.

Instead, we offer bonuses, discounts, and free services to make your experience outstanding.
How it works
Receive a 100% original paper that will pass Turnitin from a top essay writing service
step 1
Upload your instructions
Fill out the order form and provide paper details. You can even attach screenshots or add additional instructions later. If something is not clear or missing, the writer will contact you for clarification.
Pro service tips
How to get the most out of your experience with MyCoursebay
One writer throughout the entire course
If you like the writer, you can hire them again. Just copy & paste their ID on the order form ("Preferred Writer's ID" field). This way, your vocabulary will be uniform, and the writer will be aware of your needs.
The same paper from different writers
You can order essay or any other work from two different writers to choose the best one or give another version to a friend. This can be done through the add-on "Same paper from another writer."
Copy of sources used by the writer
Our college essay writers work with ScienceDirect and other databases. They can send you articles or materials used in PDF or through screenshots. Just tick the "Copy of sources" field on the order form.
See why 20k+ students have chosen us as their sole writing assistance provider
Check out the latest reviews and opinions submitted by real customers worldwide and make an informed decision.
Thank you!
Customer 452707, June 29th, 2022
Customer 452813, June 20th, 2022
Business and administrative studies
Thank you very much for your help.
Customer 452861, September 16th, 2022
I appreciate all the hard work. Thank you!
Customer 452525, August 13th, 2021
Thanks for the help, appreciate it
Customer 452821, August 27th, 2022
Thank you for helping with my assignment.
Customer 452707, July 8th, 2022
Perfectly done!
Customer 452707, July 18th, 2022
Social Work and Human Services
Thank you for the great job
Customer 452469, February 3rd, 2021
Perfectly done! Thanks again.
Customer 452707, July 18th, 2022
Social Work and Human Services
Awesome, Work! Didn't have to add much to it. Thank You!
Customer 452587, September 7th, 2021
Awesome Work!
Customer 452587, February 24th, 2022
Thanks for your support
Customer 452701, February 3rd, 2022
Customer reviews in total
Current satisfaction rate
3 pages
Average paper length
Customers referred by a friend
15% OFF your first order
Use a coupon FIRST15 and enjoy expert help with any task at the most affordable price.
Claim my 15% OFF Order in Chat

Thank you for choosing MyCoursebay. Your presence is a motivation to us. All papers are written from scratch. Plagiarism is not tolerated. Order now for a 15% discount

Order Now