Skip to main content

Studying for the AP Exam

Studying for the AP Exam

Considering I had 5 AP exams in one week, I knew I had to split my studying up over the week before the AP. I knew I couldn’t exactly practice every component of the course, so I decided to focus on topics I knew I was weak in. These include arrays, array lists, inheritance, polymorphism […]

APCS(S)- Encryption program

APCS(S)- Encryption program

Flowchart: A Caesar cipher is one of the more widely known encryption techniques. This is a substitution cipher. It takes each character in an input and changes it with a shift. For example, you could shift each character to the left or right by 3 in the alphabet. So an A would become a D […]

Java Cipher

Java Cipher

This is for my summative preparation. The Java Cipher class (javax.cryto.Cipher) is an encryption algorithm. Here are a couple of methods. doFinal(): Finishes a multiple-part encryption/decryption operation based on initialization of cipher getAlgorithm(): returns algorithm names of Cipher object getInstance(String transformation): Returns a cipher object that implements the specified transformation.

26/09/18 Inheritance

26/09/18 Inheritance

Here are my notes for today’s class about inheritance. Our example that we created based on the reading was a superclass of a cabinet, which contained subclasses of cups and other utensils. Our fields in our superclass were the width, length, and volume. When creating the cup subclass, we created a new field for shape […]

Create two classes and demonstrate how t...

Create two classes and demonstrate how to create objects

This is just a simple code for this project. In the class character, I defined all the instance variables and attributes for the class itself. Each new instance of the class that’s created by the new operator method would have their own specific version of these variables. For my constructors, I used getters and setters […]

Adventure Game Project

Adventure Game Project

Here’s my adventure game project. Firstly, here’s my flowchart for the entire game. Then we move onto the actual source code. I’ve explained my entire process and code on this screencast. Here’s me playing the game now.