Need help with your Discussion

Get a timely done, PLAGIARISM-FREE paper
from our highly-qualified writers!

glass
pen
clip
papers
heaphones

ITSD 326 AUST Computer Science Worksheet

ITSD 326 AUST Computer Science Worksheet

ITSD 326 AUST Computer Science Worksheet

Description

You will create this assignment following the Assignment Detail instructions below.

Review the tutorial How to Submit an Individual Project.

In this assignment you will apply recursive algorithms to an array, using a Quick Sort algorithm to sort it and a recursive Binary Search to locate a specific value provided by the user. Recursion is explained in the textbook, and these additional resources can also be helpful:

Quick Sort (recursive)

Binary Search (recursive)

Note that as with previous assignments, you will need to understand the algorithm in order to adapt it for use within a custom class. A careful study of the learning materials, including the zyBook units on recursion, will be helpful.

Creating the Project:

  1. Create a new project in NetBeans (use the settings “Java with Ant” and “Java Application” in the New Project wizard, on the Choose Project screen)
  2. Import java.util.*;

Creating the Custom Class:

  1. Add a Java class to the project. (New, New File, Category Java, File Type “Java Class”.) Give this custom class the name “SortSearch”. (The file “SortSearch.java” should appear in the solution alongside the supplied class.)
  2. Create methods to implement a Quick Sort algorithm and a recursive Binary Search algorithm within the SortSearch class.

Within the method Main() (in the provided class, not the custom class):

  1. Create an integer array called “nums”, with the values 4, 8, 15, 16, 23 and 42.
  2. Using the Quick Sort algorithm in the SortSearch class, sort the array.
  3. Display the contents of the array to the user in the following format (the numbers shown below must be retrieved from the array):

    Sorted array:
    Index 0: 4
    Index 1: 8
    Index 2: 15
    Index 3: 16
    Index 4: 23
    Index 5: 42

    As in previous assignments, your code must retrieve these values from the array.

  4. Display the following text for the user: “Enter number to search for: “.
  5. Create an integer value named searchValue and use it to store the user’s input.
  6. Call a recursive Binary Search from the SortSearch class on the array to locate the index number of the value from the user’s input.
  7. If the search value is not found, inform the user: “Search value not found.”
  8. If the search value is found, inform the user of the index as follows: “Search value found in index position: ” followed by the index number.

Document your code using appropriate in-line comments. Be sure to fully document your custom class (including all methods!) as well as your Main() code. Your comments must explain how the program works to a programmer who is familiar with Java and NetBeans but has not seen this program before. your submission. Student screenshots should be similar to those shown in the LibGuide.

Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Order Solution Now

Our Service Charter


1. Professional & Expert Writers: Eminence Papers only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Eminence Papers are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Eminence Papers are known for the timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Eminence Papers, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.

We Can Write It for You! Enjoy 20% OFF on This Order. Use Code SAVE20

Stuck with your Assignment?

Enjoy 20% OFF Today
Use code SAVE20