Answered step by step
Verified Expert Solution
Question
1 Approved Answer
User In this assignment you are required to develop software ( a set of functions ) that can be used to investigate plant diversity in
User
In this assignment you are required to develop software a set of functions that can be used to investigate plant diversity in a particular area. Environmental scientists may be required to identify all the different species and their prevalence in several sample zones within a larger area to establish estimates of that areas biodiversity. The scientists establish ten randomly placed quadrats m x m zones within the area and create a full record of all the plants within each quadrat. To speed up this process, the intent is to allow the scientists to photograph each individual specimen, have the specimen identified automatically using AIbased plant identification software, and add the name of the identified specimen to a list for further analysis.
Task Establish and populate a species list For this task, you are required to create a list and populate it with items representing each of the plants within a quadrat. Given the software is in the initial development stages, the list data will be test data that you manually create rather than provided via AI detection. You may choose whatever plant species names you wish for your test data, however the data must contain: A minimum of entries which may include duplicate items to reflect where there are multiple specimens of a single plant species At least different plant species In your program you may define other auxiliary functions with arbitrary names, however the primary function that provides the solution for this task must be named quadratCreation You must also document your algorithm pseudocode for your solution.
Task Data Corrections In this task you are required to provide a way for the scientists to update the name of a specimen when the AI detection software has incorrectly labelled a plant. This requires two functions: specimenCorrectionindex name which changes the name of the specimen at the specified index to the specified name. For example, specimenCorrectionAcacia longifolia needs to change the item at index of the list to be Acacia longifolia speciesCorrectioncurrent new which changes the name of every specimen with the current name to the new name. For example, speciesCorrectionKoromikoVeronica albicans needs to replace every list entry that stores Koromiko to store Veronica albicans In your program you may define other auxiliary functions with arbitrary names, however, the solution functions of this task should be named specimenCorrectionindex name and speciesCorrectioncurrent new You must also document your algorithm pseudocode for your solution.
Task Function speciesCounts In this task you are required to write a Python function that provides counts of each species. This requires one function, speciesCounts that counts each unique plant species and returns the species name with its total prevalence count. For example, for a list containing the following items note that these examples are not plant species but these must be plant species in your list: AACBCCFG AB GBEE ACDABG the output of speciesCounts would contain: Species Counts A C B F G E D You may choose to modify the order in which the plants are listed, and the appearance of how the results are presented, but each unique species and its total count must be displayed. In your program you may define other auxiliary functions with arbitrary names, however, the solution function of this task should be named speciesCounts You must also document your algorithm pseudocode for your solution.
Task Function main In this task you are required to write a function main where you test your functions. The output should include: A printout of all the items in your list after you have populated it in Task using quadratCreation A demonstration of using specimenCorrectionindex name to change the name of a recorded specimen in Task This needs to change the th specimen in your list, and print the name of the specimen directly from your list after the change has been processed. A demonstration of using speciesCorrectioncurrent new to change the name of a recorded species in Task This needs to change all instances of any species which occurs multiple times in your list, and print the full list after the change has been processed. A demonstration of speciesCounts as implemented for Task
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started