• Home
  • Blog
  • Having lots of errors, can you help please? Mr. Wizard please.

Having lots of errors, can you help please? Mr. Wizard please.

0 comments

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:

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}