This site features compilable C, C++ and Java software code from my university and outside projects. This code may look trivial at first but will become more in depth with the recently created code:
C Code:
Name: Airsim.
Created: 16/3/98.
Description: An air traffic control simulation implementing
linked list queues that stores random arrivals and departures and
attempts to get these planes moving.
airsim.zip
Name: Maze.
Created: 6/4/98.
Description: This program uses a trial and error analysis in
solving the currect path in a maze using recursive functions. The
program prompts the user for a file containing the maze data in
txt format. The files contain the length and width on the first
line then the maze in characters. 'H' is a barrier, '*' is
unvisited area. The output shows '#' for visited area and '=' for
the path solution.
maze.zip
Name: Compiler.
Created: 6/11/99.
Description: This was my final assignment in compiler program
design, it converts a code similar to Pascal to a code similar to
Assembler. This was intended to be a simple project to help us
understand how to handle assignment, conditional loop, read/write,
variable declaration statements and many other considerations in
programming. This can be used as a template to start off any form
of compiler.
compiler.zip
Java Code:
Name: MakeChange.java.
Created: 28/1/00.
Description: The user is prompted to enter a value of dollars and
cents and this program will detail the exact change in American
money.
MakeChange.zip
Name: Stick_Man.java.
Created: 2/2/00.
Description: Simple applet program to get you started.
Stick_Man.zip
Name: Address.java.
Created: 10/2/00.
Description: Example of processing main function arguments.
Address.zip
Name: Money.java.
Created: 10/2/00.
Description: Simplier version to Invest.java, this program
requires no user information rather the information is non-editable.
Money.zip
Name: Phone.java.
Created: 19/2/00.
Description: Calculate the charge on a phone bill for one call
only after the user enters information like duration and time of
call.
Phone.zip
Name: Invest.java.
Created: 27/2/00.
Description: Calculates interest and investment given the prompts
for things like interest rate and initial principle.
Invest.zip
Name: House.java.
Created: 19/3/00.
Description: A good example of constructor and method invoking
within class (House.class) and subclass (Room.class).
House.zip
Name: Survey.java.
Created: 2/4/00.
Description: An example of a program processing data from a file
in the same directory. The data contains yes or no votes and a
tally is calculated. The program requires one argument as the
name of the file containing the votes.
Survey.zip
Name: ListA.java.
Created: 14/4/00.
Description: A simple example of adding data to a vector from a
file, then terminating by backing-up to another file. For those
of you who are C orientated a vector is a dynamically allocated
array. The program takes two arguments for two files: first being
"data.master", second "data.updates". Fmt.java
is a text format alignment class.
ListA.zip
Name: FerrisA.java.
Created: 3/5/00.
Description: Another example of an applet showing a basic looking
ferris wheel.
FerrisA.zip
Name: FerrisB.java.
Created: 3/5/00.
Description: Second version to FerrisA.java only this one uses
animation.
FerrisB.zip
Name: ClientSide.java Server.java.
Created: 1/10/01.
Description: A typical client-server program which sends user
entered text from client to server and then returns confermation
of the successful transfer. It is required that you run the
server first then the client as separate executions. Also either
set your computer's IP address to 128.180.4.11 or change the
clientSocket set up in ClientSide.java.
ClientServer.zip
Name: ExternalFileB.java.
Created: 6/11/02.
Description: A modified class program from ExternalFile.java so
that you can use it to read a file or write to a file.
ExternalFileB.zip
Name: QuoteClientApplet.java QuoteServer.java.
Created: 26/11/01.
Description: Once you have mastered ClientSide.java and Server.java,
these programs sill be the next step. To start off you need your
own server machine with an IP address. This program works on the
address of 124.180.4.11 but you can change this to your own
address inside QuoteClientApplet. QuoteServer.java must run as an
executable on your server root directory. The QuoteClientApplet.java
is executed through client.html. What this all does is you can
access the server program through your browser and the server
returns a message to your applet.
QuoteClientServer.zip