This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Stack; | |
/* An iterative approach to the Tower of Hanoi puzzle. Uses | |
* 3 stacks as a representation to replace the recursive method | |
* and approaches all possible legal moves between every peg | |
* combination at any point in the puzzle. | |
* | |
* @author James Earle | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
TBS_Home.html | |
COSC 2P89, Fall Semester | |
James Earle, 5017843 | |
Tuesday, October 22, 2013 | |
--> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title> The Branch Store Home </title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/php | |
<?php | |
// $con = DB CONNECTION HERE. Removed for security purposes. | |
if (array_key_exists('isThread',$_POST)) { | |
//We're coming from "Threads.php" get top value | |
if (array_key_exists('topPerc',$_POST)) { | |
$selectedPost = 'topPerc'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Date: March 21st, 2014 | |
* Author: James Earle, 5017843 | |
* Email: je11zi@brocku.ca | |
* | |
* COSC 2P91 - Procedural Programming | |
* Assign. 2, Section 2: Modelling Electronic Circuits | |
* | |
* The program below will read from file and simulate | |
* the effects of a Wheatstone Bridge, outputting the |