This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |