Your first task in developing the application for tracking contributors is to load a list of the people who are helping the cause. Design and developa linked list, implemented as a stack, to track all...

1 answer below »

Your first task in developing the application for tracking contributors is to load a list of the people who are helping the cause. Design and developa linked list, implemented as a stack, to track all of the contributors. You will read the contributor information from a
file provided; it is a comma delimited (CSV) file. 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 Push constructor to implement the stack)

  • Print constructor: //to print out the contributor data

  • Pop constructor

  • Push constructor



Deliverables:



  • A fully documented program to load the data implemented as a stack

  • A test plan to show how the program runs and can be executed

  • A screenshot showing that the program loaded the data, and after all data is loaded, perform a single pop of the stack



Note: The deliverables from each Individual Project will be combined into one Final Key Assignment.



Please submit your assignment.

Answered Same DayDec 01, 2021

Answer To: Your first task in developing the application for tracking contributors is to load a list of the...

Aditi answered on Dec 03 2021
140 Votes
Solution/Contributor.java
Solution/Contributor.java
public class Contributor {

    private String contributor;
    private String
 city;
    private String country;
    private String phoneNumber;
    private double contribution;
    private int ID;

    private Contributor next;
    public Contributor(String contributor, String city, String country, String phoneNumber, double contribution, int ID, Contributor next) {
        this.contributor = contributor;
        this.city = city;
        this.country = country;
        this.phoneNumber = phoneNumber;
        this.contribution = contribution;
        this.ID = ID;
        this.next = next;
    }

    public Contributor(String contributor, String city, String country, String phoneNumber, double contribution, int ID) {
        this.contributor = contributor;
        this.city = city;
        this.country = country;
        this.phoneNumber = phoneNumber;
        this.contribution = contribution;
        this.ID = ID;
        this.next = null;
    }

    public Contributor(Contributor con){
        this.contributor = con.contributor;
        this.city = con.city;
        this.country = con.country;
        this.phoneNumber = con.phoneNumber;
        this.contribution = con.contribution;
        this.ID = con.ID;
        this.next = con.next;
    }
    public String g...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here