I hereby claim:
- I am allisons on github.
- I am asliter (https://keybase.io/asliter) on keybase.
- I have a public key ASAowXlKG30Jdf6BAZpk6FuW_MTwKEWpXocorLzko440qQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
//Provided Code | |
public class Account { | |
public boolean __processCalled; | |
public Account(Client c) { | |
__processCalled = false; | |
} | |
public boolean process(Transaction t) { |
import java.awt.*; | |
import java.awt.event.*; | |
import javax.swing.*; | |
import java.util.*; | |
public class ShapeControl extends JPanel { | |
private ButtonListener buttonListener; | |
private ShapeMouseListener mouseListener; |
public static void main(String[] args) { | |
JFrame f = new JFrame("Graphics Editor"); | |
f.setDefaultCloseOperation( WindowConstants.EXIT_ON_CLOSE ); | |
f.setSize(400,400); | |
Container content = f.getContentPane(); | |
f.setVisible(true); | |
DrawingBoard mainDB = new DrawingBoard(); | |
ConsoleView csv = new ConsoleView(mainDB); | |
GraphicView gphv = new GraphicView(mainDB); | |
Circle circle1 = new Circle(new Point(200,200), 150); |
public class OddMagicSquare | |
{ | |
public OddMagicSquare(int n) | |
{ | |
if (isOdd(n)) | |
{ | |
int [][] square = new int [n][n]; | |
int fillInteger = 1; | |
int colPointer = 0; |
void BST::moveUp(int nodeFrom) const | |
{ | |
int newNode = parent(nodeFrom); | |
if (isLeaf(nodeFrom)) | |
{ | |
items[nodeFrom].theData.setName(NULL); | |
return; | |
} | |
if(!isEmpty(leftChild(nodeFrom))) | |
{ |
bool BST::remove(const char* key) | |
{ | |
data aData; | |
if (!retrieve(key, aData)) | |
cout << "The data you're looking for isn't in the BST" << endl; | |
return false; | |
int node = 0; | |
if(isLeaf(retrievePrivate(key, node))) | |
{ |
bool BST::retrieve(const char *key, data& aData) | |
{ | |
int node = 0; | |
aData = items[retrievePrivate(key, node)].theData; | |
if (aData.getName() != NULL) | |
return true; | |
return false; |
ostream& operator<<(ostream& out, const hashmap& h) | |
{ | |
if (h.size == 0) | |
{ | |
out << "No stocks" << endl; | |
return out; | |
} | |
int printIndex; | |
ostream& operator<<(ostream& out, const stock& s) | |
{ | |
int dollars = s.sharePrice / 100; | |
out << setfill(' ') << left << dec | |
<< setw(8) << s.symbol | |
<< setw(36) << s.name | |
<< " " << setw(5) << right << dollars << "." | |
<< setw(2) << setfill('0') << s.sharePrice - dollars * 100 | |
<< setfill(' ') |