Need programming help with a very simple and short project on Netbeans plus a regular project

Dec 9th, 2015
Anonymous
Category:
Programming
Price: $20 USD

Question description

FIRST : 

Sorting Assignment — Quicksort

In this assignment, you will build a QuickSort method that you will implement using a recursive algorithm.

DO NOT use any Java built-in sorting methods. You must write the code from scratch.

Here’s what your program must do:

1. Read in a file of integers separated by spaces. The filename will be “IntegerArray.txt”. (Make sure the file name is exactly this because it will have to read in my file so I can test it.)

2. Put the integers into an array in the same order they came in from the file.

3. Print the array.

4. Sort the array using the QuickSort method you have written.

5. Print the sorted array.

That’s it. Pretty straightforward.

Don’t forget. Use NetBeans to build your project and then Export it as a Zip file

SECOND : 

In this assignment, you will build code sufficient to complete the following tasks: 

Here’s what your program must do:

1. Request the URL for a page of text on the Internet from the User. This is where you will search for text strings. 

2. Load the page into memory. You may use any structure you find necessary, including search trees or hash tables, in order to search quickly and efficiently. 

3. Ask the User to enter a string to find in the webpage you just loaded into memory. 

4. Count the occurrences of the string on the page and print out that number. Otherwise, print out “String not found.” if there are zero occurrences of the search string. 

5. Ask the User for another string to find on the page. If the User enters nothing but <Enter>, exit the program. 

That’s it. One last requirement: DO NOT use any Java built-in search methods. You must write the search code from scratch. You may, however, use whatever classes that Java provides to build appropriate structures for an efficient search. 

Don’t forget to comment your code. Be especially verbose when you explain your strategy for searching and if you build any structures to facilitate your search. 

Don’t forget. Use NetBeans to build your project and then Export it as a Zip file before you load anything into Moodle. 



Tutor Answer

(Top Tutor) TheWriter
School: Rice University
PREMIUM TUTOR

Studypool has helped 1,244,100 students

Review from student
Anonymous
" The best tutor out there!!!! "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1824 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors