Computer Science

Computer Science is taught by Ms. Taricco and for me it is one of the most enjoyable classes I have ever taken. This is because the homework for Computer Science is usually just a few fun programming problems. For these problems we have to create a java program that can perform some task. The problems are very similar to puzzles and you have to figure out how to solve them. In addition to the homework, I also enjoy the content that we have covered so far. At the beginning of the year, we worked on HTML and designing websites. We then started basic programming in Java. The topics we have covered in Java are Conditional Statements, Iteration, Arrays, Array Lists, and Implementing Classes.

We have also worked with some preexisting classes in Java. One example is the graphics class, which we used to create interesting art. One of my favorite programs to create with the graphics class was Line Art. Essentially, I created an interesting pattern that had curved lines in it by using only straight lines. You can view my code for this program here.

Another interesting program I created was the Sieve of Eratosthenes. The goal for this assignment was to create a program that found all of the prime numbers up to some number n (which was inputted by the user). To do this, I made a program that created a Boolean array with all true elements and then changed the element to false at a position that is a multiple of another number. The last step was to get the position of every true element and then print these values. You can view my code for this program here.