Home Math STEM 1 STEM 2 CS French Physics Humanities

CS

This class is taught by Ms. Taricco and focuses on Java and various aspects of coding. We started off by learning how to code in HTML and CSS; this is how you are able to see my website! Throughout A and B terms, we worked on various Java projects such as calculating a user's salary, validating a credit card number, and playing “Guess my number” with the user. Soon, we will create a social-good app as our next project. For the students who have already completed AP Computer Science from their sending school, they get to work on an independent CS project.

The code below is the first code I've written in Java. This was the first Java unit we learned in class. This assignment taught us the basics of print statements (System.print.ln(“String”);), and how a backslash (\) needs to be written twice (\\) for the code to print a backslash. The code below simply puts a bunch of print statements together to print a cute giraffe saying hello in a few different languages. Here is a pdf of my Animal Code.

Throughout the year, we covered more Java topics. Here is another assignment from the class. We had to write some code that could play “Guess my number” with the user. The user would input a number between 1 and 100; the computer would tell the user if their number was too high or too low. The user could keep on playing until they guessed the correct number that the computer generated. If you want, you can run this code on your computer to test it out! Here is the pdf version of my code: Guess my number.