Computer Science

Course Description

Computer Science at Mass Academy is taught by Mrs. Taricco. The intermediate course, which I was in since I did not have prior Java experience, mostly consisted of learning how to use Java during the year. After we learned about a specific topic, such as Array Lists, Class Design, Static Arrays, etc. we were assigned exercises to push our understanding of the topic. We were also encouraged to learn off each other to help us complete the exercises.

Line Art

Output of my Line Art Program

One of the exercises we did was a Line Art program. We had to create the pattern shown in the image while only using straight lines. I noticed a pattern in the code used to create the pattern, and repeated the code over and over. The original intent was to only have two of the patterns, compared to my four. The code for this exercise can be found here.

Sieve of Eratosthenes

Output of my Sieve of Eratosthenes Program

Another program we wrote was an automation of the Sieve of Eratosthenes. The Sieve of Eratosthenes is a way to find primes below a certain value. The algorithm works by checking a range of values, between 2 and the ceiling of the square root of the upper bound, inclusive. It checks every value in this range to see if it’s prime, and if it is, it declares all the multiples of said prime to be not prime. The reason why this does not check all values between 1 and the upper bound is because 1 is not prime, and all the non-primes had already been declared composite by the time the algorithm would have checked the values outside of the range that the program actually checks. For fun, I also kept a running sum of the primes while I printed them out and displayed that at the end. The code can be found here.

Apps for Good

Apps for Good is a 3-month long group project in which groups develop apps to help out the local community. Our group chose to develop a website that helps high schoolers learn about the stock market. We chose this problem because we had wanted to help educate our peers in ways schools and our competitors currently do not. The competitors we observed are the financial games and financial articles. These competitors suffer from poor explanations or lack of interactivity respectfully. These drawbacks make our competitors not ideal for our target audience.

The solution our group proposed is to create a website that has an interactive game/article hybrid that uses HTML, CSS, and JavaScript. The Minimum Viable Product (MVP) is a stock market simulation that includes an article-like tutorial with interactive components and simple explanations.

The link to our website can be found here.

Our presentation can be found on the left or through this link.