Based on the new requirement from your boss to be able to search for a contributor’s name, you decide it will be a good idea to have the data sorted. You will read the contributor information from a file provided; it is a common delimited (CSV) file. As each record is read, create a sorted Linked list of the contributors using the Insertion sort method. At this point, you no longer need to maintain the stack. Your design should include the following:

Each contributor will have the following information:

  • Name: String; //the name of the contributor
  • City: String; //the city in which the contributor lives
  • Country: String; //the country in which the contributor lives
  • Phone: String; //the phone number for the contributor
  • Contribution: Double; //the amount of the contribution given by the contributor to the zoo
  • ID: Integer; //identifier key for future needs

Contributor Functions/Methods:

  • Input constructor: //to accept a string for the name and additional information for each contributor (this should call the Add constructor to implement the sorted list)
  • Print constructor: //to print out the contributor data
  • Print All constructor: //to print the entire list of contributor names
  • Add constructor: //to traverse the linked list and find the proper location for adding the instance

Deliverables:

  • A Fully Documented Program to load the data creating a sorted linked list.
  • A Test Plan to show how the program runs and can be executed.
  • A screen shot showing that the program loaded the data. After all data is loaded perform a Print All showing the sorted list.
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.