Skip to content

Instantly share code, notes, and snippets.

View kspillane's full-sized avatar

Kyle Spillane kspillane

  • Jefferson City, MO
View GitHub Profile
@kspillane
kspillane / Study.com - CS112 Final Project - HR Information System
Created February 13, 2023 22:22
Code for my required assignment for Study.com CS 112. A HRMS implemented in C++
/*
* Study.com - CS 112 Intro to Programming in C++ Assignment - HR Resource Manager.cpp : This file contains the 'main' function.Program execution begins and ends there.
* by Kyle Spillane - spillman@gmail.com
*
* This program implements a HR Information System as requested by the assignment prompt.
*
* Main Program Operation:
*
* When launched, the program will first check if erm_data.txt exists in the working directory.
* If not, it will prompt the user to login with a master administrator password
@kspillane
kspillane / denonination.py
Created November 25, 2019 19:17
A Python script for breaking down the least denominations that could go into an arbitrary cash amount
total = float(input("Enter the total amount: "))
change = [0,0,0,0,0,0,0,0,0,0]
if ( total % 100 ) < total:
change[0] = total // 100
if (total % 100 % 50) < total:
change[1] = total %100 // 50
if (total % 100 % 50 % 20) < total:
change[2] = total % 100 %50 // 20
if (total % 100 % 50 % 20) < total:
@kspillane
kspillane / bulkftp.py
Created March 6, 2018 00:41
A python script for uploading a file to multiple FTP servers sequentially
import sys, os
from ftplib import FTP
username = str(raw_input("FTP Server Username: "))
password = str(raw_input("FTP Server Password: "))
srvfile = str(raw_input("Server list file?: "))
try:
f = open(srvfile)
except IOError:
print("There was an error reading your file - "+srvfile)