[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.
Sign up, place your order, and leave the rest to our professional paper writers in less than 2 minutes.
step 1
Upload assignment 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.
Get personalized services with MyCoursebay
One writer for all your papers
You can select one writer for all your papers. This option enhances the consistency in the quality of your assignments. Select your preferred writer from the list of writers who have handledf your previous assignments
Same paper from different writers
Are you ordering the same assignment for a friend? You can get the same paper from different writers. The goal is to produce 100% unique and original papers
Copy of sources used
Our homework writers will provide you with copies of sources used on your request. Just add the option when plaing your order
What our partners say about us
We appreciate every review and are always looking for ways to grow. See what other students think about our do my paper service.
Customer 452813, June 21st, 2022
Writer went above and beyond. Can't believe how much work they put in for the price.
Customer 452707, July 10th, 2022
Business and administrative studies
Customer 452813, June 30th, 2022
Top notch quality!
Customer 452453, February 16th, 2023
Human Resources Management (HRM)
Thank you so much for your time.
Customer 452701, September 5th, 2023
My paper was sent back after my due date time
Customer 452901, November 12th, 2022
Always pleased with the writers work.
Customer 452707, September 9th, 2023
Thank you so much for your help so I do not go insane from trying to do this. I have 2 more courses to do. Probably will be using you again.
Customer 452675, November 28th, 2021
Not all sources were " American sources" as directed
Customer 452615, September 16th, 2021
Thank You
Customer 452643, October 24th, 2021
Customer 452813, July 5th, 2022
IT, Web
Paper was great and accomplished everything I needed.
Customer 452885, October 27th, 2022
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

Good News ! We now help with PROCTORED EXAM. Chat with a support agent for more information


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