Skip to content

Instantly share code, notes, and snippets.

View ajbinky's full-sized avatar

Andrew Behncke ajbinky

View GitHub Profile
#include <iostream>
using namespace std;
const int SIZE = 8;
double numbers[] = { 5, 10, 15, 20, 25, 30, 35, 40 };
double* getNumbers();
double findMax(const double[], int);
double findMin(const double[], int);
int find(const double[], int, double);
html, body {
font-family: 'Source Sans Pro', sans-serif;
background: saddlebrown;
overflow-y: hidden;
}
@ajbinky
ajbinky / MyTimedResponse.java
Created March 28, 2019 20:16
TimedResponse using System.currentTimeMillis()
package main.cis171.kelli.week09;
import javax.swing.*;
public class MyTimedResponse {
private static String question = "Who is your idol?";
public static void main(String[] args) {
long start, end;
import java.util.Scanner;
public class AverageAgeModified {
public static void main(String[] args) {
// Add scanner so we can get user input
Scanner scan = new Scanner(System.in);
int total = 0;
public class Main
{
public static void main(String[] args)
{
System.out.print();
queue q = new queue(2);
q.doSomething();
q.string
}
}
package week4;
import java.util.Scanner;
public class EFScale {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.print("Enter 3 second wind speed: ");
int windSpeed = scan.nextInt();
package week4.rps;
import java.util.Scanner;
public class RockPaperScissorsRevised {
private static final String TIE = "It was a tie";
private static final String PLAYER_ONE_WINS = "Player One wins";
private static final String PLAYER_TWO_WINS = "Player Two wins";
package week4.rps;
import java.util.Scanner;
public class RockPaperScissors {
private static final String TIE = "It was a tie";
private static final String PLAYER_ONE_WINS = "Player One wins";
private static final String PLAYER_TWO_WINS = "Player Two wins";
package arrays;
import java.util.ArrayList;
import java.util.Random;
public class ArrayLists {
public static void main(String[] args) {
ArrayList<Integer> list = new ArrayList<>();
Random randy = new Random();
public static double computeBalance(double balance, double rate, int year) {
for (int i = 0; i < year; i++) {
balance += balance*rate ;
}
return balance;
}