AP Computer Science
This assignment was called "Lots of Hurdles." The task of this assignment was to have Karel jump over each of the hurdles and make it to the end. We specifically had to use for loops and the function jump_hurdle() to complete this task.
This assignment was called Abstracting Away build_tower. This specific task taught us about abstraction and how it can be beneficial when writing programs. In the task we learned to abstract our programs by defining functions. I used functions like build_tower() and turn_right().
Pair programming is where two programmers work together at one computer on the same piece of code. Pair programming includes a driver, who controls the mouse and keyboard, and a navigator, who reviews the code as it is created and also thinks of strategic alternatives. For our pair programming practice my partner and I worked together to create the France national flag. I was the driver, which means I was actively typing the code, and she was the navigator, meaning that she reviewed the code and also gave me alternatives when something was not working how we anticipated it to.
Build a Shelter was the name of this specific task. This was the end task after we learned about functions in Karel. In this lesson we were taught about functions and what they are specifically in code. I learned that functions are way to teach Karel a new work or command. In the activity I learned how to use functions like make_side() and go_home() to get Karel to completely build a shelter.
Debugging is finding the errors in your code. Some debugging strategies that we learned in the lesson were to pay attention to the small details, like typos. Also, to make sure to question everything because sometimes what we are so sure isn't the problem, actually is the problem. In this task I had to find errors in the code that was already written and find the errors that were prohibiting them from running. Once I found the errors I corrected them which allowed the program to run completely.
To create this checkerboard with Karel we had to first know how to paint. In this lesson we were taught how to paint using the paint function in Karel. To create this checkerboard, I had to apply everything I've learned up until this point including the paint function. I complete my board using paint('black') and paint('red') while also using for loops
In this assignment, we had to write a program that would allow the user to guess a random number. The user is required to input numbers so that the program can tell them if their guess is too high or too low than the randomly generated number. There is also a limit of guesses that the user can input.
In this task we had to explore the dynamics of population in the ecosystem specifically with wolves and sheep. We had to modify variables like sheep and wolf birth rates to test hypotheses and observe how those changes impacted the stability of the ecosystem.
In this task in Code Hs we had to assign the correct positions to the allele value. With two of the values, #1 and #2, already being given to us we had to determine and set the position of the other two values#3 and #4.
In this task in Code Hs we had to assign alleles. With the punnett square already drawn out we had to write a program that would ask the user for an input to assign alleles to each position. When I ran the code myself I used s for the alleles at the top and b for the ones on the side.
In this task in code HS I was required to write a program that first creates a punnett square. After its created it then ask for two alleles. With the given two alleles it will print the percent of dominant alleles.
This assignment was a review on censorship. After completion of this assignment, I had a better understanding of what censorship is and have a better understanding of legal and ethical concerns surrounding internet censorship.
In this task I learned about the hierarchical systems on the internet. Starting with local networks that all go into a smaller piece of whole network that then feeds into a whole network.