Skip to content

Instantly share code, notes, and snippets.

View kurtkaiser's full-sized avatar

Kurt Kaiser kurtkaiser

View GitHub Profile
@kurtkaiser
kurtkaiser / GeoFigure.java
Last active August 12, 2018 16:22
This program uses an abstract class, a interface and two subclasses to create a triangle and square object. It was an assignment from an advance java course at my local community college.
/*
Kurt Kaiser
CTIM-168 E40
07.13.2018
*/
public class DemoGeoFigure {
// Demonstrate Square subclass
public static void mysquare(){
@kurtkaiser
kurtkaiser / PhoneBook.java
Created August 12, 2018 16:28
This was an assignment for an advance college course at my local community college. The assignment gives you much of the code, it combines two seperate arrays, names and phone numbers, into a single multidimensional array. It allows the user the to look up numbers too.
// Kurt Kaiser
// CTIM-168 E40
// 7.13.2018
import java.util.Scanner;
public class PhoneBook
{
/* Creates multidimensional array of numbers and
asking for users input, calls lookup and outputs
@kurtkaiser
kurtkaiser / Periodic.java
Last active August 12, 2018 18:02
An assignment for an advance java course at my local community college. The assignment asked for four separate files, as shown below. Periodic needed to be abstract and PeriodArray had contain both metals and nonmetals elements.
/*
Kurt Kaiser
CTIM-168 E40
07.11.2018
*/
import java.util.Objects;
public abstract class Periodic
{
@kurtkaiser
kurtkaiser / BreedingHorse.java
Last active August 12, 2018 18:15
This was an assignment for an advance java class at my local community college. I was under a bit of a time crunch, so this program is somewhat thrown together. However, if it works it works.
/*
* Kurt Kaiser
* CTIM 168 E40
* 7.13.2018
*
*/
import java.util.Objects;
public class BreedingHorse extends Horse
@kurtkaiser
kurtkaiser / ConvertTimeNotation.java
Created August 12, 2018 18:24
This program allows the user to enter a time in 24-notation. The program throws an exception if the format or numbers are invalid. If no exceptions exist it converts the time and outputs it in 12-hour notation to the console. This was an assignment for an advanced java course at my local community college.
/*
Kurt Kaiser
CTIM-168
7/23/2018
Convert Time
Chapter 9 - Project 1
*/
import java.util.Scanner;
@kurtkaiser
kurtkaiser / DemoRaceDataLog.java
Last active August 14, 2018 19:29
This was an assignment for an advanced java course at my local community college. It creates an array from a text file that contains data about the amount of time it takes a runner to complete a half-marathon. I was then required to create a way for a user to input a runner's number and get data about their race performance printed to the console.
/*
Kurt Kaiser
CTIM 168
07.28.2018
Homework: C10PP10
RFID Race Data Text File Log
*/
import java.io.FileNotFoundException;
import java.util.Scanner;
/*
Cheat Detector
By Kurt Kaiser
kurtkaiser.us
*/
import org.omg.PortableInterceptor.SYSTEM_EXCEPTION;
import java.io.*;
import java.util.Scanner;
@kurtkaiser
kurtkaiser / Steganography.java
Last active August 15, 2018 22:54
This was an assignment for an advance java class at my local community college. I was asked to get the Least Significant Bit from a text file of binary numbers. Then output the last bit of each line, the LSB, to a new text file. Each line of the new file needed to be eight characters.
/*
Kurt Kaiser
CTIM 168
07.28.2018
Homework: Steganography
Least Significant Bit Insertion
*/
import java.io.*;
import java.util.Scanner;
@kurtkaiser
kurtkaiser / Fibonacci.java
Created August 15, 2018 22:57
This was an assignment for an advance java course at my local community college.
/*
Kurt Kaiser
CTIM 168
7.31.2018
C11PP3
*/
import java.util.Scanner;
@kurtkaiser
kurtkaiser / RecursiveHandshake.java
Created August 15, 2018 23:03
This was an assignment for an advance java class at my local community college. I was required to use a static recursive method calculate the number of handshakes that would occur with n number of people in a room. Each person shakes hands with everyone once.
/*
Kurt Kaiser
CTIM 168
08.02.2018
Homework: Recursive Handshakes
Chapter 11 Practice Problem 6
*/
public class RecursiveHandshake
{