Computer Science

The Computer Science class at Mass Academy includes a lot of lessons, followed by application. We learn the coding processes, methods and tools, and then put them to use through an assignment, project, or creation that we can actually use (like this website!).

Assignments

Line Art Project

This assignment involved using the AWT graphics methods in java code to create the image that you see on the right. It was both fun and challenging, and involved some math tricks as well as learning the properties of the java methods. If you'd like to view the code for this assignment, click the text labeled "Line Art Code".

  • Line Art Code
  • Seive Project

    This assignment involved using arrays and loops to create a program that generated all the prime numbers from 0 to any given number (which could be inputed by ) the user). This program was designed using the principals within the Sieve of Eratosthenes, an ancient algorithm with the purpose of creating a more efficient way of finding prime numbers. We then also had to format the program exactly as you see on the left. If you'd like to view the code for this assignment, click the text labeled "Sieve of Eratosthenes Code".

  • Sieve of Eratosthenes Code