Subsets of data retrieved from a CSV file.

The project will display a variety of different subsets of data retrieved from a CSV file. The CSV file contains data about television shows. A TVShow object will be created to store the information for the individual show data being read in. An array will be used to store the TVShow objects. The program will sort the data in a variety of ways. The output will display the results of both sort routines and search routines based on the specifications.

Specifications

Don't use plagiarized sources. Get Your Custom Essay on
Subsets of data retrieved from a CSV file.
Just from $13/Page
Order Essay

The project utilize the three sorting and two searching algorithms covered in this module. The program must use the standard algorithms presented rather than programmer developed algorithms. The program may not use Array class methods such as sort or any searching options. As part of the project, a data file in CSV format will be read into the program and used to populate an array of objects. The CSV file will be provided as part of the project.

The program will utilize an object type, TVShow, to store the data being read into the program. The object will represent the data for one TV show. An array must be used to store the TVShow objects. The program will perform the following sorts and searching. It will display the specified information.

Insertion Sorts

  1. Sort the list by TV show name in ascending order using an insertion sort. The output should include the sorted contents of the array including show name, year it premiered, the male lead and the female lead.
  1. Sort the list by number of seasons in descending order using an insertion sort. The output should include the sorted contents of the array including show name, the year it premiered and the number of seasons.

Selection Sorts

  1. Sort the list by the year the show premiered in ascending order using a selection sort. The output should include the sorted contents of the array including show name, year it premiered and how many seasons.
  1. Sort the list by genre in descending order using a selection sort. The output should include the sorted contents of the array including show name, number of episodes and the genre.

Merge Sorts

  1. Sort the list by network in descending order using a merge sort. The output should include the sorted contents of the array including show name, year it premiered, how many seasons and the network.
  1. Sort the list by number of episodes in ascending order using a merge sort. The output should include the sorted contents of the array including show name, year it premiered, number of episodes and the network.

Sequential Searches

  1. Using a sequential search, find all shows in the array that lasted for 2 years or more. The output should include the show names, year it premiered, how many seasons and the network.
  1. Using a sequential search, find all shows in the array that had more than 100 episodes. The output should include the show names, how many seasons and the number of episodes.

Binary Searches

For the searches, use each sort one time. The order in which the searches are used are up to you.

  1. Using a binary search, find and count all shows in the array that aired on CBS. The output should include the show names and the total number of shows counted as well as inform the user that the shows were aired on CBS.
  1. Using a binary search, find and count all shows in the array in the fantasy category. The output should include the show names and the total number of shows counted as well as inform the user that the shows are in the fantasy category.
  1. Using a binary search, find and count all shows in the array in the drama category. The output should include the show names and the total number of shows counted as well as inform the user that the shows are in the drama category.

Bonus

  1. Using the sort of your choice, sort and print the show information in order by last name of male lead in ascending order. The output should include the sorted contents of the array including show name, year it premiered, the male lead and the female lead.
  1. Using the sort of your choice, sort and print the show information in order by last name of female lead in descending order. The output should include the sorted contents of the array including show name, year it premiered, the male lead and the female lead.

Java Requirements

This project is designed to practice using sorts and searches, including the use of arrays and recursion to solve problems:

  • Read in data from the provided CSV file
  • Use an object called TVShow to store the information read in for a single TVShow
  • An array will be used to store objects of type TVShow
  • Use an insertion sort, completed correctly, in ascending order by TV show name
  • Use an insertion sort, completed correctly, in descending order by number of seasons
  • Use a selection sort, completed correctly, in ascending order by year the show premiered
  • Use a selection sort, completed correctly, in descending order by genre
  • Use a merge sort, completed correctly, in descending order by network
  • Use a merge sort, completed correctly, in ascending order by number of episodes
  • Use a sequential search, completed correctly, to find all shows in the array that lasted for 2 years
  • Use a sequential search, completed correctly to find all shows in the array that had more than 100 episodes
  • Each of the three sorts – insertion, selection and merge sort – are used in the binary searches
  • Use a binary search, completed correctly, to find and count all shows in the array that aired on CBS.
  • Use a binary search, completed correctly, to find and count all shows in the array in the fantasy category
  • Use a binary search, completed correctly, to find and count all shows in the array in the drama category
  • Code compiles and runs without errors
  • Code is properly commented
  • Program is properly designed and uses whitespace effectively

Bonus

  • Using the sort of your choice, sort and print the show information in order by last name of male lead in ascending order. (10 extra points)
  • Using the sort of your choice, sort and print the show information in order by last name of female lead in descending order. (10 extra points)

Once you have it working as expected upload the .java file to this assignment drop box. You must also submit a Word doc or text file containing the Java code. Assignments not containing both the Java code and the text or Word file will be assigned a 0 for a grade.

The Homework Labs
Calculate your paper price
Pages (550 words)
Approximate price: -

Our Advantages

Plagiarism Free Papers

We ensure that all our papers are written from scratch. We deliver original plagiarism-free work. To guarantee this, we submit all work alongside a plagiarism report.

Free Revisions

All our papers are completed and submitted before the deadline. We ensure this to provide you with enough time to go through the work and point out any sections or topics that may need revision or polishing. We provide unlimited revision services for free.

Title-page

All papers have a title page providing your personal and institutional information. We do not charge you for this title page.

Bibliography

All papers have a bibliography or references page. This page is a requirement for academic and professional documents. We provide this page at no cost for all our papers.

Originality & Security

At Thehomeworklabs, we guarantee the confidentiality and security of your information. We value our clients and take confidentiality seriously. All personal information is treated with confidentiality and stored safely to ensure that no third parties gain access to it. We also provide original work and attach an originality/plagiarism report alongside all papers.

24/7 Customer Support

Our customer support team is available 24/7 to provide you with any necessary assistance when you need it. You can contact us at any time, day or night, via email or through the live chat button.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

We provide our customers with the best experience in the academic and business writing field.

Pricing

Flexible Pricing

We provide the best quality of service at affordable prices. We also allow our clients to make partial payments for their orders. You can also contact our customer support team in case you need to discuss a different payment plan.

Communication

Admission help & Client-Writer Contact

We realize that sometimes clarification is necessary to ensure that quality work is done. Therefore, we provide a button for clients and writers to communicate in case some clarification is needed.

Deadlines

Paper Submission

We ensure that we submit all papers ahead of their respective deadlines. This allows you to go through the documents and request any revision, corrections, or polishing before the paper is due.

Reviews

Customer Feedback

We encourage customer feedback, positive or negative. We can identify the various areas that we need to improve to provide even better services through your feedback. Please feel free to give us feedback.