Skip to content

Instantly share code, notes, and snippets.

View hckim16's full-sized avatar

Hyo Chang Kim hckim16

View GitHub Profile
@hckim16
hckim16 / Binary Search Program
Created September 19, 2017 02:16
COBOL Program using both sequential and binary search methods.
IDENTIFICATION DIVISION. 00010000 .
PROGRAM-ID. PROGRAM1. 00020000 .
AUTHOR. JACK KIM. 00030000 .
00031000 .
ENVIRONMENT DIVISION. 00032000 .
INPUT-OUTPUT SECTION. 00033000 .
FILE-CONTROL. 00034000 .
SELECT INPUT-FILE ASSIGN TO INFILE. 00035000 .
SELECT INPUT-FILE2 ASSIGN TO INFILE2. 00035108 .
SELECT INPUT-FILE3 ASSIGN TO INFILE3. 00035205 .
@hckim16
hckim16 / Queue
Last active September 19, 2017 02:17
Circular Linked List
#include <iostream>
#include <string>
using namespace std;
class Cnode
{
int value;
Cnode *next;
friend class Clist;
friend class linkedQueue;
@hckim16
hckim16 / Matching Parentheses
Created September 20, 2017 02:54
Code to match parentheses - Used information and knowledge from mycodeschool's youtube video at https://www.youtube.com/watch?v=QZOLb0xHB_Qto
#include <iostream>
#include <string>
using namespace std;
class RuntimeException{ // generic run-time exception for empty stack
private:
string errorMsg;
public:
@hckim16
hckim16 / 2D Array
Created September 20, 2017 21:47
Simple code for working 2D array
#include <iostream>
#include <iomanip>
using namespace std;
// global constants for array initialization
const int COL = 5;
const int ROW = 5;
int row;
int col;
#include<iostream>
#include<string>
#include<iomanip>
using namespace std;
class DNode // Establish DNode Class
{
private:
DNode *next; // Node to use in list
@hckim16
hckim16 / Group Project Assignment
Created September 20, 2017 22:00
Code written to tabulate travel expense account, written by group listed in comments with myself as project team leader
//courseID:CIS265-002HY
//name: Jack Kim, Kayla Guirao, Winielson Miranda, Fatima Idrissa
//Prof. Wang
//Group Project#1
//Due by 2/27/2012
#include <iostream>
#include <cstdlib>
using namespace std;
@hckim16
hckim16 / Priority Queue
Created September 20, 2017 22:03
Priority Queue using DLL structure with information taken from sources listed plus help from Arielle Patrice, Bergen Community College
//http://www.cprogramming.com/snippets/source-code/priority-queue-with-linked-list
//http://www.sanfoundry.com/cpp-program-implements-priority-queue/
//https://www.youtube.com/watch?v=yIUFT6AKBGE
//http://faculty.cs.niu.edu/~mcmahon/CS241/Notes/doubly_linked.html
#include<iostream>
#include<cstdlib>
using namespace std;
@hckim16
hckim16 / Airport Check-in simulation
Created September 30, 2017 02:24
Simulation check in at an airport counter with 2 queues and 2 first class counters for the first class queue and 3 coach class counters for the coach queue.
//Hyo Chang Kim
//Kim-CS610-2017-programming assignment 1
//Professor Ali Mili
/*
Input:
1. Duration of Simulation
2. Average Coach Class Passenger Arrival Time
3. Average Coach Class Service Time
4. Average First Class Passenger Arrival Time
5. Average First Class Service Time
@hckim16
hckim16 / Singly Linked List
Created October 2, 2017 16:10
Singly linked list with traverse and search functions, credit and help cited
//courseID:CIS277-001
//name: Hyo Chang Kim
//Prof. Eliscu
//Homework Assignment#4: Singly Linked List
//Due by 2/21/2017
/*
I had a few challenges on this assignment. I wrote the code for creating a singly linked list that accepted the airport codes and miles as values. I wrote it as a do-while loop after setting the initial node to LGA and zero miles. The do-while then adds as many nodes as inputted to the last position. I wrote a second do-while loop with switch menu to give the user the option of displaying the entire list or to search for a specific code.
*/
@hckim16
hckim16 / runningmedian.cpp
Last active January 31, 2018 06:17
Find Running Median
#include <cmath>
#include <queue>
#include <iomanip>
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <algorithm>
using namespace std;