Skip to content

Instantly share code, notes, and snippets.

@asterwolf
asterwolf / ArrayList.cpp
Last active August 29, 2015 14:16
COMP B12 - Lab4
/*
*
* @author: Diego Diaz
* Course: COMP B12
* Created on: Feb 23, 2015
* Source File: ArrayList.cpp
*/
#include "ArrayList.h"
#include <iostream>
@asterwolf
asterwolf / CharacterCountdown.java
Last active August 29, 2015 14:16
COMP B11 - Lab4
/*
* This program reads a line of input that is stored as a string. It then removes
* one character from the string until there are no more characters remaining.
* @author Diego Diaz
* Course: COMPB11
* Created: March 08, 2015
* Source File : CharacterCountdown.java
*
*/
@asterwolf
asterwolf / ArrayListTemplate.h
Last active August 29, 2015 14:17
COMP B12 - Lab5
/*
* ArrayList is a container class that grows as needed.
* Need to add destructor, copy constructor, and, later,
* operator=
*
* @author: Diego Diaz
* Course: COMP B12
* Created on: Feb 23, 2015
* Source File: ArrayList.h
*/
/*
*
* @author: Diego Diaz
* Course: COMP B12
* Created on: Apr 23, 2015
* Source File:
*/
#include <iostream>
#include <string>
/*
* Tester program
* @author: Diego Diaz
* Created on: Aug 23, 2015
* Source File:
*/
#include <iostream>
#include <sstream>
#include <string>
/*
* Tester program
* @author: Diego Diaz
* Created on: Sept 06, 2015
* Source File: bottlesOfBeer.cpp
*/
#include <iostream>
#include <sstream>
using namespace std;
#include <iostream>
#include <sstream>
using namespace std;
int main(int arc, char* argv[]){
string phrase;
string words[20];
cout << "Enter in a sentence to be translated into piglatin." << endl;
getline (cin, phrase);
int findMatchingChars(char *string1, char *string2, char *outString);
#include <stdio.h>
int main(int argc, char**argv){
char outString[30];
int count;
if(argc <= 2){
printf("Usage: matchCharsMain string1 string2");
}
else{
count = findMatchingChars(argv[1], argv[2], outString);
@asterwolf
asterwolf / FizzBuzz.java
Created November 22, 2015 23:27
A program that counts from 1 to 100, printing "Fizz" if the number is divisible by 3, prints "Buzz" if it's divisible by 5, and prints "FizzBuzz" if it's divisible of both 3 and 5.
public class FizzBuzz{
public static void main(String[] args){
for(int i = 1; i <= 100; i++){
/*
* Could check to see if i is divisible by 5 and 3 first
* that way you won't have to check if it's divisible by 3
* and not also divisible by 5 and vice versa.
if(i % 3 == 0 && i % 5 != 0){
/** For this assignment you will write an assembly language function (in 32-bit
* mode) to manipulate a 2-dimensional array that represents an image. The image
* is a bitmapped image, where (at least for the images we will be working with)
* each pixel is represented by 3 bytes that indicate how much red, green, and
* blue there is at that location.
* @author: Diego Diaz
* Course: COMP B13
* Created on: Dec 4, 2015
* Source File: twoDprocessFloat.s
*/