Introduction
I love learning new things in my classes and applying them to my art and my coding in my free time. I’m very passionate about these two subjects and my ultimate dream would be to work in video game production through either coding or art.
Lee Pringle
– September 2024

Code Portfolio
Array Lab 6.1 – Input
After finishing our first lecture in class learning about Arrays, we were tasked with a project in trying to create a method that would find the average of all the values in an array, how many of those values were above the average, which value is the largest, and the index of the smallest value. Figuring out the logistics of each method was quite challenging especially since we had never done anything with arrays before but it was nevertheless very satisfying when I finally figured it out. This project was extremely helpful in wrapping my head around arrays and it definitely helped me understand and use them more.

Array Lab 6.1 – Output

Array Lab 6.2 – Input
This was the second project my class had assigned to us after learning about arrays. This one was very much similar where we were given the task to write certain methods. We had to figure out how to return true if there was an odd number in an array and false otherwise, shift all the values in an array right, shift all the values in an array left, and find the array’s mode. Both of these array projects were very challenging but it was extremely helpful to try and work out these problems. They gave me a better understanding on how arrays work and it was a lot of fun figuring each task out like a puzzle. Trying to create a method that found the array’s mode was the most difficult problem and it definitely took more than a few trials and errors. However, it only made it all the more rewarding figuring it out in the end.

Array Lab 6.2 – Output

Casino Game – Group Project
This following program was a group project that my class was assigned. We were assigned to work as a group of 5 to create a functioning game. Our group decided to make a casino with 4 functioning games: poker, slots, roulette, and scratch tickets. I created the poker method/game, worked out the logistics of the money variable, and created the loop at the beginning of the code. This project took quite a while and one of the most challenging bits was figuring out the money variable and how to get the new balance to update each time the user played a game. However, I was very proud after a few days of trying to finally figure it out and get it to work. The loop at the beginning of the code also presented quite a few issues. Its purpose was to ask the user if they’d like to enter the casino and if they said “no”, it would enter a loop of printing “It’s a new day” and asking the user if they’d like to enter the casino again. This loop would continue infinitely until the user entered “yes”. This again took a few days of work before I had figured out the logistics. Overall, this project is definitely the program that I’m most proud of and is by far the most extensive and time-consuming I’ve done so far. It took me and my group around a month to finish it and it may be overall quite simple but it was the first proper game I’ve ever made and we were all so ecstatic when we finished it.

FRQ 1
In my AP Computer Science class, we sometimes do a Free Response Question practice in preparation for the AP exam. This is an example of one of them and the work I did to complete it. This specific FRQ was surrounding our Unit 6 of Arrays. The first question tasked us with solving how to write a program that determines whether a String ended in “ing” which was the most straight-forward question in this FRQ. The second and third questions referred to an array of values that represented how many items an employee at a store had sold. The second question required us to write a method that would compute the average number of items sold excluding the most items sold and the least items sold. The third question wanted us to write a method to calculate each employee’s wages and then use the average from our previous method to determine whether or not the employee exceeded it. If the number of items sold exceeded the average, we then had to add a bonus of 10% to their wages before storing their final wage into a separate array. This FRQ took a lot of trial and error; I had to use a mix of both writing out my ideas on paper and coding it online to figure it all out and find any issues. Just setting up the questions in the program took a long time and it was one of the more challenging FRQs we’ve had in class so far. However, I was able to persevere and finish it within the class period and, like with all code we do in class, it was extremely satisfying to see the hard work I put in pay off when I finally got all of them to work. After reviewing the answers the next class, I have made notes on how to make the code more efficient in order to make my next FRQ more sleek and less clunky.


FRQ 2






Contact
Let’s Connect
Say Hi! – I’m always open to discussing new projects, collaborations, or opportunities.
Feel free to reach out to me through my email:
