0% found this document useful (0 votes)
1 views3 pages

Aarav. G - CSP - Unit - 6 - Hackathon - Project - Written - Response

The program is designed to help users find dog breeds that match their preferences based on criteria such as maximum lifespan, weight, or height. It utilizes a list called 'filteredAge' to store and filter dog breeds according to user inputs, managing complexity by narrowing down options efficiently. A function within the program executes a loop to display the relevant dog breeds, enhancing user experience by providing more tailored choices.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views3 pages

Aarav. G - CSP - Unit - 6 - Hackathon - Project - Written - Response

The program is designed to help users find dog breeds that match their preferences based on criteria such as maximum lifespan, weight, or height. It utilizes a list called 'filteredAge' to store and filter dog breeds according to user inputs, managing complexity by narrowing down options efficiently. A function within the program executes a loop to display the relevant dog breeds, enhancing user experience by providing more tailored choices.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Name Aarav.

G Period 7 Date 3/11/2025

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.

Write a written response that:


●​ Identifies the name of the list being processed
●​ Identifies what the data contained in the list is representing in your program
●​ Explains how the list manages complexity in your program by explaining how your program code would be
written differently if you did not use the list

Name of the list filteredAge

Computer Science Principles​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ 1


Data contained in the list The filtered list after the code is run which holds the new list with the user
preferences on it. And the selected dog breeds to be contained on it based on
what the user inputs and selects.

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.

Question 3: Insert a screenshot of a function definition from your program:

Write a written response that:


●​ Describes in general what the identified procedure does and how it contributes to the overall functionality of the
program.

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.

Computer Science Principles​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ 2


Computer Science Principles​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ 3

You might also like