45.4k views
4 votes
Write a program that will

• Greet the user, describe your program, and invite the user to try it (user can say no) • Implement Selection, Insertion, optimized Bubble, Merge and Quick sorting algorithms.
For all search algorithms, use the text or the class-developed version as starter code, adapted for your data. Be sure to provide proper credit to the developers (such as the text or your colleagues) as needed. DO NOT use online versions. Using online versions may result in 0 points for this assignment
• Read in 2 data text files of different lengths. Choose from your favorite literature, speeches, or other works. One file is at least 5000 words and the other needs to be at least 5 times larger. Combining multiple files into one longer file is fine, but they should not repeat. The program will parse the files into words and prepare data for sorting by eliminating all occurrences of "a", "an", "be", "the". Give your text files meaningful names.
Allow the user to choose between 2 options: o All algorithms

User Myforwik
by
7.3k points

1 Answer

1 vote

Final answer:

The student is tasked with writing a program that loads, processes, eliminates specific common words from two data text files, and performs multiple sorting algorithms. The user can interact with the program by choosing which sorting algorithm to use on the prepared data.

Step-by-step explanation:

The student requested a program that greets the user, describes itself, and invites the user to opt in or out of using it. This program should be capable of reading in two separate data text files, one being at least 5000 words and the other at least five times longer, derived from literature, speeches, or similar works. It will parse these files into words and prepare the data for sorting by eliminating certain common words. Additionally, the program will implement various sorting algorithms: Selection, Insertion, optimized Bubble, Merge, and Quick sorting. For the sorting algorithms, proper credit will be given to the developers of the starter code used, as per the student's instruction.



When creating such a program, it is essential to begin by loading the text files and processing them to remove the specified common words. After the data preparation, the programming task involves writing the sorting algorithms. Each sorting algorithm has its own logic and efficiency considerations. The user should be prompted to choose which sorting algorithm to apply to the data.

User Ibraheem Ahmed
by
8.0k points