Program to load the data creating a sorted linked list

Assignment Help Programming Languages
Reference no: EM13811747

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.

Reference no: EM13811747

Questions Cloud

About the weighted average cost of capital : The bonds yield 9.0 percent. The company also has 3.5 million shares of common stock outstanding. The stock has a beta of 1.6 and sells for $45 a share. The U.S. Treasury bill is yielding 6 percent and the market risk premium is 9 percent. Jack's tax..
What is the company''s average balance in accounts payable : Question 1 ABC Company writes 330 checks a day for an average amount of $489 each. These checks generally clear the bank in 2 days. In addition, the firm generally receives an average of $176,042 a day in checks that are deposited immediately. Deposi..
What is the definition of assimilation : What is the definition of assimilation
Stock in an account with only the initial margin : If you shorted this stock in an account with only the initial margin, how much could the stock rise before you got a margin call? Assume the maintenance margin is 30%. Describe why you selected the stock for writing call options on and how this trans..
Program to load the data creating a sorted linked list : 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
Inflation risk premiums-bond yields and rates of return : A 10-year, 12% semi annual coupon bond with a par value of $1,000 may be called in 4 years at a call price of $1,060. The bond sells for $1,100. Because of a recession, the inflation rate expected for the coming year is only 3%. However, the inflatio..
Ethical philosophy : Ethical Philosophy
Transitional dynamics behind changes in industry : Summarize key milestones involved in the past and present shaping and transitional dynamics behind changes in the present health care industry.
Why might a company use supply chain monitoring : Why might a company use supply chain monitoring? What types of metrics could be used in the monitoring process

Reviews

Write a Review

Programming Languages Questions & Answers

  Write program which inputs employee name

Write the program which inputs Employee Name and Tuition and prints, for each employee, Name and Rebate Amount.

  Write a lisp program to evaluate lisp arithmetic

Write a Lisp program to evaluate Lisp arithmetic expressions. Assume four operators may be used in expressions and they are +, -, *, and /. All these operators are binary, i.e., they are applied in an expression in this format

  Write a paper on the walmart supply chain you can email it

write a paper on the walmart supply chain. you can email it to me when you are done. walmart has one of the best supply

  Write pseudocode for finding grade of a student

Write pseudocode for finding grade of a student given his/her total score. The program must display a grade of A if the score is above 85, a B if it is between 85 and 75, a C.

  Write program which computes amount of money earn

Write a program which computes amount of money person would earn over period of time if his or her salary is one penny the first day, two pennies the second day.

  Define four user-defined exceptions

You will need to define four user-defined exceptions; one for unknown movies, one for unknown member, one for unknown payment method.

  Create set-list of enumerated constants called week

Create set/list of enumerated constants called week which contains days of week. Have variable called today that is of kind week. Allot a value to today.

  Function to retrieve each of the private data members

Write a class called "Date" with month, day and year as private members. Have constructor that sets default date to 1st January 2000. Have accessor function which retrieves each of the private data members.

  Program to calculate integer part of quotient

Calculate the integer part of the quotient when integer a is divided by integer. Calculate the integer remainder when integer a is divided by integer b

  Program to overload addition operator

The class should also provide the following overloaded operator capabilities: Overload the addition operator (+) to add two Polynomials.

  Write a program that will use the four sorting algorithm

Write a program that will use the four sorts (Selection sort, Heap Sort, Quicksort and Merge Sort). Each of the four sorts should be TIMED on three different lists of integers.

  Write program to read file having student'' test scores

Write a C++ program that reads a file named "grades.txt" consisting of students' test scores in the range 0-200 (all integer values). (The first number in the file specifies the number of grades it contains.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd