Skip to content

Instantly share code, notes, and snippets.

/*
* Name: Thomas Worrell
* Date: 2/12/2020
* Course Number: CSC-112
* Course Name: Intermediate Java
* Problem Number: HW2
* Email: taworrell@student.stcc.edu
* Short Description: Create a class to create polynomials and perform functions upon them
*/
/*
* Name: Thomas Worrell
* Date: 2/3/2020
* Course Number: CSC-112
* Course Name: Intermediate Java Programming
* Problem Number: HW 1 Ex
* Email: taworrell0001@student.stcc.edu
* Car racing simulation with arrays
*/
/*
* Name: Thomas Worrell
* Date: 1/31/2020
* Course Number: CSC-112
* Course Name: Intermediate Java Programming
* Problem Number: HW 1
* Email: taworrell0001@student.stcc.edu
* Vehicle class for car racing simulation
*/
package vehicle;
int switchState, switchState2,switchState3,switchState4,knobState,freq1,freq2,freq3,freq4;
int knob = 0;
int currentStateCLK;
int previousStateCLK;
void setup() {
pinMode (12,INPUT);
pinMode (13,INPUT);
Serial.begin(9600);
public class Quadratic {
private double x,y,z;
public Quadratic(double a, double b, double c) {
x = a;
y = b;
z = c;
}
/* Name:Thomas Worrell
* Date:11/20/2019
* Course Number: CSC-111
* Course Name: Intro to Java Programming
* Problem Number: Homework 9
* Email: taworrell0001@student.stcc.edu
* Short Description of the Problem:Create a program to simulate a Bean game and output the results. */
import java.util.Arrays;
/* Name: Thomas Worrell
* Date: 11/12/19
* Course Number: CSC-111
* Course Name: Intro to Java Programming
* Problem Number: Homework 8
* Email: taworrell0001@student.stcc.edu
* Short Description of the Problem: Computing standard deviation from a file. */
import java.io.File;
import java.io.FileNotFoundException;
// Thomas Worrell
import java.util.Scanner;
public class AreaCalculator {
public static void main(String[] args) {
System.out.println("Shape Area Calculator V1.0");
Scanner input = new Scanner(System.in);
/* Name: THomas Worrell
* Date: 10/28/2019
* Course Number: CSC-111
* Course Name: Intro to Java Programming
* Problem Number: Homework Seven
* Email: taworrell0001@student.stcc.edu
* Short Description of the Problem: Calculate sin of an inputed degree value */
import java.util.Scanner;
import java.util.Scanner;
/*
Thomas Worrell
10/23/2019
Intro to Java Programming CSC-111
Homework Six
Create an ISBM-13 number from 12 entered digits
taworrell0001@student.stcc.edu
*/
public class ISBN13GeneratorFOR