Question: Please create a programming code I have no time for it today. Thank you!!!!!!!!!!!!!!!!!!!!!!! This is an exercise in correctly implementing insertion sort and selection

Please create a programming code I have no time for it today. Thank you!!!!!!!!!!!!!!!!!!!!!!!

This is an exercise in correctly implementing insertion sort and selection sort.

This assignment includes a text data file containing information on tutorial websites for a variety of programming languages. The data file is named Tutorials. It contains records of programming tutorial websites. The record structure for this text file is:

FIELD 1 = Programming Language

FIELD 2 = Name and Description of Website

FIELD 3 = URL Web Address of Language Tutorial

The structure of the file is that there is a separate line for each field/property/attribute of the record. Every three lines makes up one physical record.

For those of you who took computer science I here at CCP, you covered using a bubble sort to sort elements in a collection.

In your project, create two methods for the project one that performs a selection sort on your Tutorial Website object array and one that performs an insertion sort on your Tutorial Website object array.

You should create a user defined object of Tutorial Website type. The object should have three properties:

Language Name

Website Description

Website URL

Your object will need to implement the comparable interface for this object. You may choose the property is used to determine the order of your object. Language name would be the best choice.

Your project should read the list of programming language tutorials in from the text data file, and load the data into a Tutorial Website object . In the process it should copy the object into an array. After the array is fully loaded, sort the list in the array. After the list in the array is sorted, write the list to a different output file. Repeat this process for the other sorting algorithm.

After the program executes, there should be two new output files. One file with the list sorted in ascending order and another file with the list in descending order.

Place the two sorting methods that you create into your project, one that performs a ascending selection sort on your object, and the other method will perform a descending insertion sort on the object array . In your main method of the project call the methods so that it repeats the sorting process for the selection sort and then for the insertion sort. In each method, the file should read the original file, sort the data, and then write the data to a new output file. Both methods should write its output file as CSV File. Your program should have two file writing methods in your project. One that processes and writes the sorted ascending array and one that processes and writes the sorted descending array.

Here is the data file: Tutorials.txt

""

Java The Java Tutorials http://docs.oracle.com/javase/tutorial/ Python Tutorialspoint Java tutorials http://www.tutorialspoint.com/python/ Perl Tutorialspoint Perl tutorials http://www.tutorialspoint.com/perl/ C++ cplusplus.com C++ tutorials http://www.cplusplus.com/doc/tutorial/ Objective C The objective C programming tutorials http://howtomakeiphoneapps.com/objective-c-tutorial/ C++ The LearnCPP C++ Tutorial http://www.learncpp.com/ Objectice C The Objective C tutorial http://objectivectutorial.org/ Java LearnJavaOnline.org Interactive Java Tutorial http://www.learnjavaonline.org/ Objective C Objective C beginner's Guide http://www.otierney.net/objective-c.html C# Microsoft C# http://msdn.microsoft.com/en-us/library/aa288436%28v=vs.71%29.aspx Python The Python Tutorial http://docs.python.org/2/tutorial/ Python Learn Python interactive Tutorial http://www.learnpython.org/ COBOL The ZingCOBOL beginners guide to COBOL Programming http://cobol.404i.com/ Java Tutorialspoint Java tutorials http://www.tutorialspoint.com/java/ C++ Tutorialspoint Java tutorials http://www.tutorialspoint.com/cplusplus/ Ruby Ruby in Twenty Minutes https://www.ruby-lang.org/en/documentation/quickstart/ PHP PHP: a Simple Tutorial http://php.net/manual/en/tutorial.php JavaScript W3 Schools Javascript Tutorial http://www.w3schools.com/js/default.asp Ruby The Ruby DOC Introduction to Ruby http://ruby-doc.org/docs/Tutorial/ JavaScript JavaScript for the Total Non-Programmer http://www.webteacher.com/javascript/

""

Include a lab report with your project.

If your application works, you should be able to open the CSV file in Microsoft Excel, then use the features of Excel to work with the data.

Submit a zipped NetBeans project folder with a copy of the tutorial text file in it and your lab report in the folder. The program should not use absolute addressing to the file, it should use relative addressing.

After the program is executed, it should create two different text files inside the project folder. one that contains the list in ascending order from the selection sort, and one that contains list in descending order from the insertion sort.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!