Aarav. G - CSP - Unit - 6 - Hackathon - Project - Written - Response
Aarav. G - CSP - Unit - 6 - Hackathon - Project - Written - Response
Question 1: Provide a written response that describes the overall purpose of the program
The overall purpose of the program we made was a way for users to find a dog breed that suits there preferences.
And also find statistics of different dog breeds that compare or contrast with other dog breeds. Users are able to
select if they want to find the maximum life span, weight, or height of a dog breed. Then input a value that
corresponds with the maximum amount. Example could be a user enter 9 and choose maximum life span from the
dropdown. Then the program would provide dog breeds that have up to a maximum lifespan of 9 years.
Question 2: Insert screenshots of two program code segments which contain a list being used in your program.
The first program code segment should show how the data has been stored in the list.
The second program code segment should show the data in the same list being used, such as creating new data from
the existing data or accessing multiple items in the list.
The list manages complexity by... The list has complexity with it, because it filters a wide array of information. It
first looks through all the dog breeds and finds the breeds that correspond to
the column in the dataset that the user has chosen. Then using the value the
user inputs it filters those new dog breeds and finds the breeds that are under
the maximum value the user inputs. Then transfers those dog breeds into the
filtered list displaying it to the user.
What the function does The function executes the for loop and then uses the if statement to display the
finalised list. First the for loop is executed then the if statement selects breeds that
should be displayed to the user instantly. And the for loop keeps repeating that
action until it meets the designated value in the syntax. This is what the function
does for the code.
How the function contributes to The function contributes to the overall functionality of the code by letting the users
the overall functionality of the have more preferences of what type of dog breeds they want to get. Without this
program function the code will only have options for max height and weight. Which most
people might not want to mainly account for when looking for a dog. So because
of this function's contribution to code the user is able to have more freedom in
selecting a dog breed they want in the future.