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
# Analysis: I had a lot of fun re-designing assignment 7 in this assignment. I created a Rectangle2D class and made it so that the back-end communicated with the front end. When the back-end was updated, so was the front-end. The only problem at that point was making sure I only used the back-end variables are didn't touch the front end. | |
# Design: Made a Rectangle2D class. Allowed the front end variables to be setup inside that class. Finally, added the ability for the text input fields to directly have access to the last clicked rectangle. | |
# Coding: Please indent and format your code properly | |
from tkinter import * | |
class Rectangle2D: |
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
/* | |
Make program which asks for student's names, | |
then when the user types "done", | |
prints them all out in the console window. | |
*/ | |
import java.util.LinkedList; | |
import java.util.Scanner; |
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.Collections; | |
import java.util.LinkedList; | |
import java.util.Random; | |
import java.util.Stack; | |
class Toast | |
{ | |
public static void main(String[] args) | |
{ | |
final long SIMULATION_ATTEMPTS = 10000000L; |
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.Collections; | |
import java.util.LinkedList; | |
import java.util.Random; | |
import java.util.Stack; | |
class Toast | |
{ | |
public static void main(String[] args) | |
{ | |
final long SIMULATION_ATTEMPTS = 100000000L; |
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
#include <stdlib.h> | |
#include <stdio.h> | |
#include "LinkedList.h" | |
static struct Node | |
{ | |
void *data; | |
struct Node *next, *prev; | |
}; |
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
public interface Listener | |
{ | |
public void fire(); | |
} |
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
List[] aidsArray = new Collection[10]; | |
for (List i : aidsArray) | |
{ | |
ListIterator iter = i.ListIterator(); | |
while (iter.hasNext()) | |
{ | |
// operation here | |
} |
NewerOlder