Skip to content

Instantly share code, notes, and snippets.

View hckim16's full-sized avatar

Hyo Chang Kim hckim16

View GitHub Profile
@hckim16
hckim16 / COBOL Program using tables.
Created September 23, 2017 01:18
The goal of this program is to gain experience in arithmetic calculations, heading and footing lines, and use of occurs clause with tables and subscripts
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 PRINT-FILE ASSIGN TO SYSPRINT. 00036000 .
00037000 .
@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 / 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;
#include<iostream>
#include<string>
#include<iomanip>
using namespace std;
class DNode // Establish DNode Class
{
private:
DNode *next; // Node to use in list
@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;
@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 / 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;