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 csv | |
import sys | |
import pprint | |
FIRST_ROW = 6 | |
DATE_INDEX = 1 | |
EMAIL_INDEX = 7 | |
FARE_INDEX = 14 |
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.*; | |
public class ConsoleProgram{ | |
private Scanner scanner; | |
public static void main(String[] args){ | |
// Assume the class name is passed in as the first argument. | |
if(args.length == 0){ |
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.*; | |
public class Randomizer{ | |
public static Random theInstance = null; | |
public Randomizer(){ | |
} | |
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.*; | |
import java.lang.*; | |
public class ObjectTracker{ | |
// Code for grader | |
private static HashMap<String, ArrayList<Object>> objTracker = new HashMap<String, ArrayList<Object>>(); | |
// create instancetracker | |
private static final int CALLER_INDEX = 3; |
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 sys | |
SENTINEL = -1 | |
def lookandsay(num): | |
"""Return the look and say version of num.""" | |
num = str(num) |
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
function Lexicon(file){ | |
this.data = { | |
'a': { | |
'b': { | |
's': {} | |
} | |
} | |
}; | |
} |
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
Verifying that +jkeesh is my blockchain ID. https://onename.com/jkeesh |
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.*; | |
public class Grader | |
{ | |
public static void runInputTest(Autograder grader, String[] inputs, String message) | |
{ | |
// Create a student program | |
SnackPack studentProgram = new SnackPack(); |
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.io.*; | |
import java.lang.*; | |
import java.util.*; | |
import org.json.*; | |
public class Autograder | |
{ | |
/** |
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
function start() | |
{ | |
if(frontIsClear()) | |
{ | |
move(); | |
} | |
else | |
{ | |
putBall(); | |
} |
OlderNewer