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 develop a 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

Title: Design and Implementation of a Linked List as a Stack for Tracking Contributors

Introduction:
The task at hand is to design and develop a linked list, implemented as a stack, to track contributors for a cause. This assignment aims to create a program that can load a list of contributors from a provided CSV file. Each contributor will have various pieces of information, such as their name, city, country, phone number, contribution amount, and an identifier key for future needs. This document will outline the design and implementation of the required data structure and associated functionalities.

Design and Implementation:
To effectively track the contributors, a linked list implemented as a stack will be employed. This design choice offers efficient insertion and removal of contributors at the top of the stack. The linked list structure allows for dynamic memory allocation, which can accommodate a variable number of contributors.

Contributor Information:
The following information will be associated with each contributor:

1. Name: String
The name of the contributor, which will be stored as a string.

2. City: String
The city in which the contributor resides. This information will also be stored as a string.

3. Country: String
The country in which the contributor resides, stored as a string.

4. Phone: String
The phone number of the contributor, stored as a string.

5. Contribution: Double
The amount of contribution made by the contributor to the cause. The contribution will be represented as a double value.

6. ID: Integer
An identifier key assigned to each contributor for future referencing purposes. This ID will be stored as an integer.

Contributor Functions/Methods:
Three essential functions/methods will be implemented for managing contributors within the stack-based linked list structure:

1. Input Constructor:
This constructor will accept a string for the contributor’s name and additional information for each contributor. It will utilize the Push constructor to implement the stack functionality. This method will facilitate the insertion of a new contributor into the stack.

2. Print Constructor:
The print constructor will be responsible for printing out the contributor data. It will traverse the linked list, starting from the top of the stack, and display the information for each contributor in a formatted manner.

3. Pop Constructor:
The pop constructor will handle the removal of contributors from the stack. It will remove the topmost contributor and update the stack accordingly.

4. Push Constructor:
The push constructor will handle the addition of contributors to the stack. It will insert a new contributor on top of the stack using the provided information.

Next Steps:
With the design and implementation plan outlined, the next step would involve translating this design into code. Additionally, an appropriate file reading mechanism needs to be developed to load contributor information from the provided CSV file into the linked list stack data structure.

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer