CS122

A few old code files from my undergraduate CS122 class; these are all written as Java applets (as was the fashion at the time), so I’m just making the code available. They do still run though (thanks Java!)

Infix to PostFix Converter & Calculator

Supports (a) variable, negation, parentheses, functions, and multi-digit numbers.

MyPanel.java
PanelApplet.java
Manager.java
CStack.java
DStack.java

“Queens” Problem Solver

Supports various board sizes, displays types of solutions, and removes duplicate solutions.

MyPanel.java
PanelApplication.java
Manager.java
StatsCanvas.java
Node.java
Board.java
BoardList.java
ListCanvas.java

“Pegs on a Board” Problem Solver

Two board size options.

MyPanel.java
PanelApplet.java
Board.java
Share