CS112: Sample Final Projects
In the cs112 download directory, there is a folder called sampleProjects.
That folder contains all the code for the projects on this page.
Molecular Orbital Theory by Thanh Thu Ngo 2010
(download/sampleProjects/molecularOrbital)
Type moGUI to start the GUI.
- Choose an element from the drop down menu (carbon, fluorine, etc)
- Click on the buttons in their numbered order:
- valence
- plot MO orbitals
- bonding
- plot electron densities
- is it stable?
Snake by Abigail Perry 2006
(download/sampleProjects/snake)
Playing the snake game.
Type snakeGUI to start the GUI.
- Pick your level (easy is the default)
- Click start
- Try to eat all the blue food (which makes the snake body grow)
by using the up/down/left/right buttons
- If the snake's body runs into itself, it dies
Click here for Abby's Phase I write-up.
Paper Airplane Simulation by Sharon Kotz 2008
(download/sampleProjects/airplane)
Simulation of a paper airplane's flight.
Type airplane to start the GUI.
The airplane GUI simulates a paper airplane's flight.
A window will appear with several sets of axes and several parameters
which can be adjusted.
- Wing Angle Slider -- adjusts the angle of the wings
(a top view of the airplane is shown above the slider)
- The user enters launch velocity (meters/sec, reasonable range [1-4]) --
for fun, can try >100 m/sec
- The user enters initial height (meters, reasonable range [2-8]) --
for fun, you can try an extreme height of > 100m
- Push the Launch button
- The three sets of axes on the bottom will display the height, velocity and acceleration of the plane over time
Titration by Jessica Chen 2007
(download/sampleProjects/titration)
This project makes corrections to flourescence titration data
and uses MATLAB's curve fitting tools.
Type titrationGUI to start the GUI.
- Save flourescence data as signal.txt, volume.txt and peptide.txt.
- Enter a text file name into the Corrected File Name text box for corrected data
- Press the necessary corrections button in any order
- Invert the data should be pressed last
- Press the Done button (the corrected data will appear as a new file)
- In the command window, create vectors for x and y variables of the binding curve equation
using the
textread function. e.g. xvals = textread('volume.txt'); yvals = textread('data1.txt')
- Press the plot button to show the curve-fitting GUI. Choose x and y vectors and create the data set. Tools>Custom Equation>General Equation
- Press New Data button and save new set of raw data
Cracking the Code by Rebecca Tsang and Miranda Mei 2006
(download/sampleProjects/crypto)
This GUI decrypts messages using two different methods (brute force and
a chi-squared statistical analysis of letter frequency).
Type crackGUI to start the GUI.
- Type in a caesar-cipher encrypted message
- Now you have 2 choices: Brute force or Crack it!
- In Brute Force, a decryption will show up in the lower box,
shifting through 26 possible letter shifts. You can pause or stop
this shifting with the GUI buttons
- In Crack it!, the program performs a frequency analysis on the
encrypted message and returns a decrypted message that matches the
frequency of the letters in English the best using Chi-Square. The more letters you
type, th emore accurate the "crack it!" button performs.